summaryrefslogtreecommitdiff
path: root/dev/Host.zig
diff options
context:
space:
mode:
Diffstat (limited to 'dev/Host.zig')
-rw-r--r--dev/Host.zig5
1 files changed, 4 insertions, 1 deletions
diff --git a/dev/Host.zig b/dev/Host.zig
index 0dc2ae6c..1834e52e 100644
--- a/dev/Host.zig
+++ b/dev/Host.zig
@@ -10,7 +10,10 @@ pub const VTable = struct {
/// The shell's monotonic clock in ns: the only time the core sees.
/// Without one, core animation moves only by `.tick` events.
now: ?*const fn (ctx: ?*anyopaque) u64 = null,
- present: ?*const fn (ctx: ?*anyopaque, surface: *const pardes.Surface) void = null,
+ /// The frame drawn on the frontend: false when it could not show it
+ /// now (no image to draw into, the terminal still answering the last),
+ /// which owes the next frame.
+ present: ?*const fn (ctx: ?*anyopaque, surface: *const pardes.Surface) bool = null,
post_present: ?*const fn (ctx: ?*anyopaque) void = null,
poll_frame: ?*const fn (ctx: ?*anyopaque) void = null,
/// Whether anyone sees a frame drawn now. A detached session with no