From 22702b69419a8b632331ff96201b5ad731152284 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 28 Apr 2024 14:57:27 -0700 Subject: [PATCH] renderer/metal: re-enable triple buffer --- src/renderer/Metal.zig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/renderer/Metal.zig b/src/renderer/Metal.zig index 4ac1f4a9f..fb956dd00 100644 --- a/src/renderer/Metal.zig +++ b/src/renderer/Metal.zig @@ -132,8 +132,7 @@ pub const GPUState = struct { // is comptime because there isn't a good reason to change this at // runtime and there is a lot of complexity to support it. For comptime, // this is useful for debugging. - // TODO(mitchellh): enable triple-buffering when we improve our frame times - const BufferCount = 1; + const BufferCount = 3; /// The frame data, the current frame index, and the semaphore protecting /// the frame data. This is used to implement double/triple/etc. buffering.