On Thu, 9 Sep 2021 09:18:59 GMT, Alexey Ushakov <[email protected]> wrote:

>> Yes, it affects both pipelines, but flickering was noticed only with Metal. 
>> I've tried IDEA on both pipelines and I've run desktop tests only with 
>> Metal. I'm going to run desktop ones with OGL too.
>
> OGL desktop tests are OK.
> 
>> This looks as if it will affect OpenGL as well as Metal.
>> Do you see the flckering with both pipelines ?
>> What testing have you done with both of them ?

If the user will create a peer then change the background color, then show the 
window the flickering will occur. you need to override the 
LWWIndowPeer.setBackground and call the platformWindow.setBackground from 
there. The LWWIndowPeer.setBackground is also called during peer initialization 
so the code above will not be needed. 

But it will be good to root cause the problem if it is not related to the 
performance.

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

PR: https://git.openjdk.java.net/jdk/pull/5373

Reply via email to