Animations + resize = performance loss
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.
Does the performance drop go away if you remove the WebView?
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.