JetBrains / skiko

Kotlin Multiplatform bindings to Skia
Apache License 2.0
1.83k stars 118 forks source link

[iOS] Battery usage and performance #671

Closed chaserunner closed 1 month ago

chaserunner commented 1 year ago

Hi. Sample app is consuming a lot of resources despite being pretty basic example. Both CPU and GPU are consuming a lot of resources, and battery is draining.

Screenshot 2023-02-15 at 18 37 36

What can be done in order to optimise the performance especially if canvas is static and isn't updating every frame? Plus if only part of canvas should be updated or simple translation should be applied to already rendered canvas, is there a way to prevent each frame from re-rendering?

dima-avdeev-jb commented 1 year ago

Thanks, we will try to do it better!

dima-avdeev-jb commented 1 year ago

Soon we will make some changes in iOS rendering. I think it will increase performance https://github.com/JetBrains/skiko/pull/668

okushnikov commented 1 month ago

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.