Hello,

I just tested this with our JavaFX application and can confirm that there are massive differences. It takes around 1-2 seconds to completely apply all application stylesheets in JavaFX 20 but takes around 6-7 seconds in JavaFX 21.

On 12/31/2023 3:00 PM, Florian Kirmaier wrote:
Hi Everyone,

Sorry for the delay - but I couldn’t find the time to extract the TestApplication for this bug. Luckily, I found another application, which is also open source, which is affected by the application.

I'm speaking about https://www.jfx-central.com/ - both the desktop and web versions are affected. I’ve seen a performance deterioration of 10x when switching pages when using JavaFX21 compared to JavaFX20.

I’ve created a ticket with further instructions on how to test it:
https://bugs.openjdk.org/browse/JDK-8322795

Greetings

Florian Kirmaier

On Fri, 27 Oct 2023 at 21:31, Andy Goryachev <andy.goryac...@oracle.com> wrote:

    Please create a ticket, Florian.  Would it be possible to profile
    the application when scrolling?

    Thank you

    -andy

    *From: *openjfx-dev <openjfx-dev-r...@openjdk.org> on behalf of
    Florian Kirmaier <florian.kirma...@gmail.com>
    *Date: *Friday, October 27, 2023 at 04:20
    *To: *openjfx-...@openjdk.java.net <openjfx-...@openjdk.java.net>
    *Subject: *Performance Regression in 21 - CSS

    Hi everyone,

    I've noticed that some parts of one of my applications is
    significantly slower with 21. It's fast with 20.
    The application heavily uses (and reuses) TextFlow with a Cell
    pattern.
    When I scroll, it is smooth with 20, but has big freezes with 21.

    I've tried all the commits that happened in between, and
    pin-pointed it down to the following:
    ticket: https://bugs.openjdk.org/browse/JDK-8304959
    PR: https://github.com/openjdk/jfx/pull/1070
    commit:
    
https://github.com/openjdk/jfx21u/commit/3fa02ee96a6dadbc20cacbf399a2d65df708eee1


    According to the description and the discussion in the PR - this
    wasn't supposed to change any performance.
    Is this regression known?
    Otherwise, I should create a ticket for it.

    Greetings Florian

Reply via email to