Skip to content

Conversation

@ipavlidakis
Copy link

@ipavlidakis ipavlidakis commented Oct 23, 2025

🔗 Issue Links

Resolves https://linear.app/stream/issue/IOS-1215/investigationorbuginvestigate-memory-usage-degradation-after-webrtc

📝 Summary

We observed increased memory usage when switched from m125.4 to m137.4. This revision addresses and resolves the issue causing the increased usage.

🛠 Implementation

The issue was caused due to commit 1d5d3b80ec10f9102ac55a2a020248159bb48557 which was attempting to scale the rendered drawables in the metalView by taking under consideration the screen's scaleFactor. That was causing additional computation that ended up increasing the memory usage.

As this change was unexpected (our m125 fork from LiveKit was cut before this commit was introduced) this revision reverts this change.

An item has been added in the iOS backlog to investigate if this a change that we want to bring forward and evaluate the pros and cons of it.

🧪 UI Testing Notes

  • From the main iOS repo you can trigger the CallFlow_PerformanceTests.test_performance_with4Participants to ensure that it passes.

☑️ Contributor Checklist

  • I have signed the Stream CLA (required)
  • This change follows zero ⚠️ policy (required)
  • This change should receive manual QA
  • Changelog is updated with client-facing changes
  • New code is covered by unit tests
  • Comparison screenshots added for visual changes
  • Affected documentation updated (tutorial, CMS)

@ipavlidakis ipavlidakis self-assigned this Oct 23, 2025
@ipavlidakis ipavlidakis added bug Something isn't working iOS labels Oct 23, 2025
@ipavlidakis ipavlidakis merged commit 8f3e494 into patch/m137.41 Oct 23, 2025
@ipavlidakis ipavlidakis deleted the fix/performace-issue-on-ios-due-to-metalview-scale-calculation branch October 23, 2025 15:15
@ipavlidakis ipavlidakis restored the fix/performace-issue-on-ios-due-to-metalview-scale-calculation branch October 24, 2025 12:49
ipavlidakis added a commit that referenced this pull request Oct 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working iOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants