LWJGL-FX icon indicating copy to clipboard operation
LWJGL-FX copied to clipboard

Animations + resize = performance loss

Open Drakkoon opened this issue 11 years ago • 2 comments

I'm wondering if you have any idea what is causing this massive performance drop when there is a JavaFX transition running and we resize the window. Once resized, if the animation is stopped and started again everything is fine.

I forked and added a button that you can click to start and stop an animation on it so you can see for yourself. https://github.com/Drakkoon/LWJGL-FX

I'm pretty sure there's some caching done on JavaFX's side, but I can't find what, where and how it is affecting this.

Drakkoon avatar May 30 '14 15:05 Drakkoon

Does the performance drop go away if you remove the WebView?

Spasi avatar Jun 01 '14 12:06 Spasi

I reduced the example to one of its simplest forms. Just a thread that acquires a lock, and releases it in a Platform.runLater.

https://github.com/Drakkoon/LWJGL-FX/blob/master/src/JavaFXResizeTest.java

I think it has more to do with the pulse thread slowing down the platform's tread pool than the actual OpenGL rendering or ImageView. I might ask about this in the JavaFX mailing list in that case.

Drakkoon avatar Jun 02 '14 13:06 Drakkoon