From 5f4fb8b4007f4088a00725cd8201cca8d8e41afe Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Fri, 16 Jul 2021 17:09:23 -0700 Subject: [PATCH] glfw: only keep test window open for 100ms Signed-off-by: Stephen Gutekanst --- glfw/src/main.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glfw/src/main.zig b/glfw/src/main.zig index f109983b..5650e660 100644 --- a/glfw/src/main.zig +++ b/glfw/src/main.zig @@ -130,7 +130,7 @@ pub fn basicTest() !void { } var start = std.time.milliTimestamp(); - while (std.time.milliTimestamp() < start + 3000 and c.glfwWindowShouldClose(window) != c.GLFW_TRUE) { + while (std.time.milliTimestamp() < start + 100 and c.glfwWindowShouldClose(window) != c.GLFW_TRUE) { c.glfwPollEvents(); }