Seems like the synchronised was there for an older approach to rendering. Made redundant by the BufferStrategy in 2015. 

Now it causes issues on windows if you resize the window too quickly
This commit is contained in:
Stef Tervelde
2025-01-21 09:19:38 +01:00
committed by GitHub
parent 628b69db24
commit 20d0c2503e

View File

@@ -227,7 +227,7 @@ public class PSurfaceAWT extends PSurfaceNone {
}
synchronized protected void render() {
protected void render() {
if (canvas.isDisplayable() &&
graphics.image != null) {
if (canvas.getBufferStrategy() == null) {