mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
renderer: move our constant draw timer up to 120fps
Our renderers can now handle it
This commit is contained in:
@ -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;
|
||||||
|
Reference in New Issue
Block a user