6e422506
chore(main): extend draw smoke test duration for visual verification
a73x 2026-04-08 09:27
diff --git a/src/main.zig b/src/main.zig index 9b5fdfb..5ef28ab 100644 --- a/src/main.zig +++ b/src/main.zig @@ -95,10 +95,10 @@ fn runDrawSmokeTest(alloc: std.mem.Allocator) !void { }; try ctx.uploadInstances(&instances); std.debug.print("instances uploaded, rendering 60 frames...\n", .{}); std.debug.print("instances uploaded, rendering for ~15 seconds at 60fps...\n", .{}); var i: u32 = 0; while (i < 60) : (i += 1) { while (i < 900) : (i += 1) { // Non-blocking Wayland event read: prepare + read + dispatch. // The Vulkan WSI (FIFO) needs wl_buffer.release events from the compositor // to be read off the socket before it can release an acquire slot. @@ -109,6 +109,7 @@ fn runDrawSmokeTest(alloc: std.mem.Allocator) !void { _ = conn.display.dispatchPending(); try ctx.drawCells(1, .{ cell_w, cell_h }); _ = conn.display.flush(); std.Thread.sleep(16 * std.time.ns_per_ms); } _ = try ctx.vkd.deviceWaitIdle(ctx.device);