Removes the Thread.sleep(100) fix from both the windowed/fullscreen functions
@@ -207,14 +207,6 @@ public class Screen {
frame.setForeground(colorPalette.getDefaultForeground());
frame.setVisible(true);
- // There's a rare, hard to reproduce, issue where, on the first
- // render of a Screen, it may just display a blank white canvas.
- // This sleep is meant to fix that issue by giving the Canvas time
- // to initialize, or something like that.
- try {
- Thread.sleep(100);
- } catch (final InterruptedException ignored) {}
-
draw();
return frame;
@@ -273,14 +265,6 @@ public class Screen {
device.setFullScreenWindow(frame);
isInFullScreenExclusiveMode = true;
- // There's a rare, hard to reproduce, issue where, on the first
- // render of a Screen, it may just display a blank white canvas.
- // This sleep is meant to fix that issue by giving the Canvas time
- // to initialize, or something like that.
- try {
- Thread.sleep(100);
- } catch (final InterruptedException ignored) {}
-
draw();
return frame;
