Proof-of-concept fix for window resize on Metal. <...
# compose-desktop
a
Proof-of-concept fix for window resize on Metal. @Konstantin Tskhovrebov
🔥 7
🚀 6
👀 4
🧈 2
K 16
s
Wow, really smooth. Nice work, congrats. I’m working on a similar render-buffer fix in my project, so I’m curious: how did you solve it? My guess is bucketed buffer pooling, or something close to that. I honestly don’t know another good way to fix this at the window level. Did I guess right?
a
The crucial point that we were missing before is that the rendering needs to be driven from the AppKit main thread, not from the AWT event dispatching thread.
K 2
👍 2
👍🏾 1
a
damn, that is smooth!
m
Damn, So fast
a
It’s still only a proof-of-concept; there are problems with it that I need to solve first. But the point that it proves is that the root cause is not a performance issue. Kotlin/JVM is absolutely fast enough for smooth window resizing.