renderer: move our constant draw timer up to 120fps

Our renderers can now handle it
This commit is contained in:
Mitchell Hashimoto
2024-05-03 20:06:48 -07:00
parent caaf6a496f
commit fe7ff998c9

View File

@ -14,7 +14,7 @@ const App = @import("../App.zig");
const Allocator = std.mem.Allocator; const Allocator = std.mem.Allocator;
const log = std.log.scoped(.renderer_thread); const log = std.log.scoped(.renderer_thread);
const DRAW_INTERVAL = 33; // 30 FPS const DRAW_INTERVAL = 8; // 120 FPS
const CURSOR_BLINK_INTERVAL = 600; const CURSOR_BLINK_INTERVAL = 600;
/// The type used for sending messages to the IO thread. For now this is /// The type used for sending messages to the IO thread. For now this is
@ -498,7 +498,7 @@ fn renderCallback(
) catch |err| ) catch |err|
log.warn("error rendering err={}", .{err}); log.warn("error rendering err={}", .{err});
// Draw // Draw immediately
t.drawFrame(); t.drawFrame();
return .disarm; return .disarm;