From fe7ff998c9a0be8a9125463127e52468cb7d7a57 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 3 May 2024 20:06:48 -0700 Subject: [PATCH] renderer: move our constant draw timer up to 120fps Our renderers can now handle it --- src/renderer/Thread.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/Thread.zig b/src/renderer/Thread.zig index 283447295..c4342ef4c 100644 --- a/src/renderer/Thread.zig +++ b/src/renderer/Thread.zig @@ -14,7 +14,7 @@ const App = @import("../App.zig"); const Allocator = std.mem.Allocator; const log = std.log.scoped(.renderer_thread); -const DRAW_INTERVAL = 33; // 30 FPS +const DRAW_INTERVAL = 8; // 120 FPS const CURSOR_BLINK_INTERVAL = 600; /// The type used for sending messages to the IO thread. For now this is @@ -498,7 +498,7 @@ fn renderCallback( ) catch |err| log.warn("error rendering err={}", .{err}); - // Draw + // Draw immediately t.drawFrame(); return .disarm;