From 20d0c2503e8249940b64fdd789455cf49d78da6d Mon Sep 17 00:00:00 2001 From: Stef Tervelde Date: Tue, 21 Jan 2025 09:19:38 +0100 Subject: [PATCH] Fix for #931 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 --- core/src/processing/awt/PSurfaceAWT.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/processing/awt/PSurfaceAWT.java b/core/src/processing/awt/PSurfaceAWT.java index 06337ba38..ad58b8541 100644 --- a/core/src/processing/awt/PSurfaceAWT.java +++ b/core/src/processing/awt/PSurfaceAWT.java @@ -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) {