husker-dev / openglfx

OpenGL node for JavaFX
Apache License 2.0
88 stars 12 forks source link

Feature suggestion: allow to set thread priority for async canvas elements #53

Closed streamingdv closed 1 year ago

streamingdv commented 1 year ago

I just tested the async rendering canvas feature and this indeed improved the rendering performance a bit on my side, however it would be nice if there would be a possibility to set a rendering thread priority. It still works great except the flickering on resizing but I saw that you have created a ticket for that already.

husker-dev commented 1 year ago

You can change the thread priority by setting Thread.currentThread().setPriority(...); in initialization listener. It executes only once at the beginning. So, I don't think there is a need to make a separate setting for this.

streamingdv commented 1 year ago

Good point, that should do the trick as well 👍