glfw: only keep test window open for 100ms
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
d9797481d2
commit
5f4fb8b400
1 changed files with 1 additions and 1 deletions
|
|
@ -130,7 +130,7 @@ pub fn basicTest() !void {
|
||||||
}
|
}
|
||||||
|
|
||||||
var start = std.time.milliTimestamp();
|
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();
|
c.glfwPollEvents();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue