Describe the problem
I was testing public examples in this repo and noticed that visual effects example has noticeable performance issues, at least on iOS. A Release build without a debugger connected shows around 20-30fps on iPhone 11 Pro.
As we can see from the Metal debug HUD each frames takes around ~47ms to render and less than 2ms of that time is spent on GPU, so CPU seems to be a bottle neck in this case.
It's possible that the reason for bad performance is in the sample app itself (in which case it probably shouldn't be a public sample?) or it can be a performance issue in Compose Multiplatform + Skia.
Affected platforms
At least iOS, I didn't measure performance on Android.
Versions
Kotlin version: 1.9.10
Compose Multiplatform version: 1.5.1
OS version(s) (required for Desktop and iOS issues): 17.0
Describe the problem I was testing public examples in this repo and noticed that visual effects example has noticeable performance issues, at least on iOS. A Release build without a debugger connected shows around 20-30fps on iPhone 11 Pro.
As we can see from the Metal debug HUD each frames takes around ~47ms to render and less than 2ms of that time is spent on GPU, so CPU seems to be a bottle neck in this case.
It's possible that the reason for bad performance is in the sample app itself (in which case it probably shouldn't be a public sample?) or it can be a performance issue in Compose Multiplatform + Skia.
Affected platforms At least iOS, I didn't measure performance on Android.
Versions
Sample code Example app lives in this repo.
Reproduction steps Build example on iOS device, enable Metal HUD and observe performance on "Wave Effect" or "Happy New Year" screens.