JetBrains / compose-multiplatform

Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
https://jetbrains.com/lp/compose-multiplatform
Apache License 2.0
15.24k stars 1.11k forks source link

Being able to create a ComposePanel with vsync disabled #4870

Closed MohamedRejeb closed 1 week ago

MohamedRejeb commented 1 month ago

Hi, I've been discussing the current latency issue with @igordmn , especially when working with inputs. One of the possible solutions to reduce latency is to disable vsync, but it's not a good option because it will make the program slower. So Igor suggested having 2 panels one for ui (with vsync) and one for drawing (without vsync). We will need the ability to configure ComposePanel(skiaLayerProperties = SkiaLayerProperties(isVsyncEnabled = false))

Thanks!