<i18n dev> RFR: JDK-8303950: [macos]Translucent Windows Flicker on Repaint
Sergey Bylokhov
serb at openjdk.org
Wed Mar 15 21:48:20 UTC 2023
On Sun, 12 Mar 2023 17:35:40 GMT, Jeremy <duke at openjdk.org> wrote:
> I'm confident about the new test case for this ticket, but the resolution is more invasive than I'd like. (It works, though.)
>
> In short:
> This introduces a new RenderingHint (in SunHints) to bypass the call in Window to `gg2d.fillRect(0, 0, getWidth(), getHeight());`
>
> I left more detailed notes here about the proposed resolution:
> https://github.com/openjdk/jdk/commit/1991fdac5dbf76ddaf73cc78a9f7c38370c9674c
>
> I'm open to suggestions if anyone has a more elegant proposal to prevent the monitor from refreshing too soon?
improving synchronization will make the same effect as using the double-buffer for this translucent windows, but probably adding the double-buffer is simpler to implement. You can also check how the "swing.bufferPerWindow" property is implemented, we can try to improve it for this issue and set by default.
-------------
PR: https://git.openjdk.org/jdk/pull/12993
More information about the i18n-dev
mailing list