husker-dev / openglfx

OpenGL implementation for JavaFX
Apache License 2.0
80 stars 10 forks source link

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

Closed streamingdv closed 7 months ago

streamingdv commented 7 months 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 7 months 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 7 months ago

Good point, that should do the trick as well 👍