Some issues with increasing the value of javafx.animation.pulse
John Hendrikx
john.hendrikx at gmail.com
Wed Mar 5 15:09:36 UTC 2025
Hi Glavo,
On which platform is this? On Windows I really don't expect that
setting pulse higher will do much (I posted this a few days ago on this
list in response to your earlier inquiry). It may trigger more frames
to be rendered, but their animation times will not use correct values
resulting in it just rendering duplicate frames or frames with only
slight differences (and not the expected 1/120 difference).
On the Windows platform I think we need to do some more work to get
animations >60 Hz -- specifically, the FX thread needs to be scheduled
reliably at intervals lower than 15 ms, which is non-trivial on Windows.
As for the NVIDIA problem; I doubt that setting "javafx.animation.pulse"
can have any effect on this. You may want to look further as to why this
problem occurs.
--John
On 05/03/2025 07:41, Glavo wrote:
> We tried setting javafx.animation.pulse to 120 in our JavaFX application.
> After a few days of collecting feedback, we found the following issues
>
> * Animation frame rate does not seem to be improved on HiDPI screens
> on Windows.
> * JavaFX applications prevent NVIDIA Advanced Optimus from
> automatically selecting graphics cards when javafx.animation.pulse is set.
>
> Glavo
More information about the openjfx-dev
mailing list