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