mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 16:26:08 +03:00
renderer: remove 10ms delay on repaint
This commit is contained in:
@ -422,18 +422,21 @@ fn wakeupCallback(
|
||||
t.drainMailbox() catch |err|
|
||||
log.err("error draining mailbox err={}", .{err});
|
||||
|
||||
// If the timer is already active then we don't have to do anything.
|
||||
if (t.render_c.state() == .active) return .rearm;
|
||||
// Render immediately
|
||||
_ = renderCallback(t, undefined, undefined, {});
|
||||
|
||||
// Timer is not active, let's start it
|
||||
t.render_h.run(
|
||||
&t.loop,
|
||||
&t.render_c,
|
||||
10,
|
||||
Thread,
|
||||
t,
|
||||
renderCallback,
|
||||
);
|
||||
// // If the timer is already active then we don't have to do anything.
|
||||
// if (t.render_c.state() == .active) return .rearm;
|
||||
//
|
||||
// // Timer is not active, let's start it
|
||||
// t.render_h.run(
|
||||
// &t.loop,
|
||||
// &t.render_c,
|
||||
// 10,
|
||||
// Thread,
|
||||
// t,
|
||||
// renderCallback,
|
||||
// );
|
||||
|
||||
return .rearm;
|
||||
}
|
||||
|
Reference in New Issue
Block a user