From 4ebb4571ac6219b3eacfda38df51d3f1ff949af9 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Thu, 2 Dec 2021 18:05:46 +0000 Subject: [PATCH] gpu: correctly target ~60hz, not 62,500hz, in Dawn example Signed-off-by: Stephen Gutekanst --- gpu/src/dawn/hello_triangle.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpu/src/dawn/hello_triangle.zig b/gpu/src/dawn/hello_triangle.zig index c5414da4..ab67d1e8 100644 --- a/gpu/src/dawn/hello_triangle.zig +++ b/gpu/src/dawn/hello_triangle.zig @@ -129,7 +129,7 @@ pub fn main() !void { .pipeline = pipeline, .queue = queue, }); - std.time.sleep(16000); + std.time.sleep(16 * std.time.ns_per_ms); } }