a73x

6e422506

chore(main): extend draw smoke test duration for visual verification

a73x   2026-04-08 09:27

Commit message
chore(main): extend draw smoke test duration for visual verification

src/main.zig
Old New
@@ -95,10 +95,10 @@ fn runDrawSmokeTest(alloc: std.mem.Allocator) !void {
95 }; 95 };
96 96
97 try ctx.uploadInstances(&instances); 97 try ctx.uploadInstances(&instances);
98 std.debug.print("instances uploaded, rendering 60 frames...\n", .{}); 98 std.debug.print("instances uploaded, rendering for ~15 seconds at 60fps...\n", .{});
99 99
100 var i: u32 = 0; 100 var i: u32 = 0;
101 while (i < 60) : (i += 1) { 101 while (i < 900) : (i += 1) {
102 // Non-blocking Wayland event read: prepare + read + dispatch. 102 // Non-blocking Wayland event read: prepare + read + dispatch.
103 // The Vulkan WSI (FIFO) needs wl_buffer.release events from the compositor 103 // The Vulkan WSI (FIFO) needs wl_buffer.release events from the compositor
104 // to be read off the socket before it can release an acquire slot. 104 // to be read off the socket before it can release an acquire slot.
@@ -109,6 +109,7 @@ fn runDrawSmokeTest(alloc: std.mem.Allocator) !void {
109 _ = conn.display.dispatchPending(); 109 _ = conn.display.dispatchPending();
110 try ctx.drawCells(1, .{ cell_w, cell_h }); 110 try ctx.drawCells(1, .{ cell_w, cell_h });
111 _ = conn.display.flush(); 111 _ = conn.display.flush();
112 std.Thread.sleep(16 * std.time.ns_per_ms);
112 } 113 }
113 114
114 _ = try ctx.vkd.deviceWaitIdle(ctx.device); 115 _ = try ctx.vkd.deviceWaitIdle(ctx.device);