From 9656105cb4c902213f281e658dd88286cc2df8ed Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Fri, 13 Nov 2026 15:10:16 -0300 Subject: debugger: link register hints and profile smooth native rendering --- gui/build.zig | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gui/build.zig') diff --git a/gui/build.zig b/gui/build.zig index 0cb956f..d3f75d4 100644 --- a/gui/build.zig +++ b/gui/build.zig @@ -4,13 +4,15 @@ const sketchbook = @import("sketchbook"); pub fn build(b: *std.Build) void { const target = b.standardTargetOptions(.{}); const optimize = b.standardOptimizeOption(.{}); - const sb = sketchbook.init(b, .{ .target = target, .optimize = optimize }); - const canim = b.dependency("canim", .{ .target = target, .optimize = optimize }); + const tracy_path = b.option([]const u8, "tracy", "Enable Tracy profiling using this source checkout"); + const sb = sketchbook.init(b, .{ .target = target, .optimize = optimize, .tracy = tracy_path }); + const canim = b.dependency("canim", .{ .target = target, .optimize = optimize, .tracy = tracy_path orelse "" }); const zt = b.dependency("ztrace", .{ .target = target, .optimize = optimize }); const glass = sb.addGlslc(.{ .source = b.path("src/glass.frag") }); const app = sb.app(.{ .name = "ztrace-gui", .root_source_file = b.path("src/app.zig"), .imports = &.{ .{ .name = "canim", .module = canim.module("canim") }, .{ .name = "ztrace", .module = zt.module("ztrace") }, + .{ .name = "tracy", .module = sb.modules.tracy }, } }); app.module.addAnonymousImport("glass", .{ .root_source_file = glass.spirv }); b.installArtifact(zt.artifact("ztrace")); -- cgit v1.3