RFR: 8370498: Improve how Node detects whether a layout property change requires a new layout pass [v4]

Johan Vos jvos at openjdk.org
Tue Oct 28 17:15:41 UTC 2025


On Tue, 28 Oct 2025 16:51:35 GMT, John Hendrikx <jhendrikx at openjdk.org> wrote:

> It's not a bad idea to just run layout again if after running layout the root is still dirty.

There must be historical reasons why this is not the case. @kevinrushforth might have more background info. I would guess that the original design goal was to keep a pulse as short as possible, and the `requestNextPulse` inside a pulse would be useless with this approach. I think the `requestNextPulse` was created for this reason: don't stop the world for too long, render what we have, and try to render again as soon as possible (in the next pulse). This prevents the pulse runnable from lock the JavaFX Application Thread for too long -- as said above, there are other users for this Thread.

-------------

PR Comment: https://git.openjdk.org/jfx/pull/1945#issuecomment-3457583501


More information about the openjfx-dev mailing list