From 934f4f1354538e20092f3220e31cf8a6d2cb7943 Mon Sep 17 00:00:00 2001 From: Duy Tran Khanh Date: Sun, 8 Aug 2021 17:34:09 +0700 Subject: [PATCH] FPS limiter :) --- JavaApp/src/main/java/org/lwjgl/glfw/GLFW.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/JavaApp/src/main/java/org/lwjgl/glfw/GLFW.java b/JavaApp/src/main/java/org/lwjgl/glfw/GLFW.java index 5c74ff2e..5c6b35a4 100644 --- a/JavaApp/src/main/java/org/lwjgl/glfw/GLFW.java +++ b/JavaApp/src/main/java/org/lwjgl/glfw/GLFW.java @@ -1140,12 +1140,12 @@ public class GLFW public static void glfwWaitEventsTimeout(double timeout) { // Boardwalk: this isn't how you do a frame limiter, but oh well // System.out.println("Frame limiter"); - /* + try { Thread.sleep((long)(timeout * 1000)); } catch (InterruptedException ie) { } - */ + // System.out.println("Out of the frame limiter"); }