Hi,

On Tue, Jul 7, 2020 at 10:15 AM [email protected] <[email protected]> wrote:
>
> Hi,
>
> I recently got involved to get an existing Java Swing UI to perform better. I 
> have incrementally  been making minor changes till now and getting 
> improvements.
> Since we are mostly developing on Linux/OSx boxes we were already aware that 
> there is a significant difference in performance between these, where Windows 
> would be least responsive.
> At some point we decided to run a crazy experiment and just run our Java UI 
> on WSL (Ubuntu), on a Windows machine side by side with the same Java UI on 
> plain Windows.
> It turns out that the WSL UI outperforms the Windows UI by miles.
>
> I want to start digging into details as soon as I have time but I was 
> wondering if someone has any intuition on what's going on here. I would not 
> expect a performance gain by adding an extra level of indirection.

Make sure the Java2D rendering pipeline you are using is the same across tests.

OpenJDK is based on Marlin (https://openjdk.java.net/jeps/265), but
Oracle's JDK may be different, and same for other vendors.

See also: https://www.azul.com/blog/performance-rendered-visual/

-- 
Simone Bordet
---
Finally, no matter how good the architecture and design are,
to deliver bug-free software with optimal performance and reliability,
the implementation technique must be flawless.   Victoria Livschitz

-- 
You received this message because you are subscribed to the Google Groups 
"mechanical-sympathy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/mechanical-sympathy/CAFWmRJ37nzKV7Dfjjwj5ZET3D1wQqPAwb_MO1iS%3DzDANX4jDNg%40mail.gmail.com.

Reply via email to