From 105dbe9e05be178459e31f41140dd0f1d052900d Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 28 Apr 2024 09:52:51 -0700 Subject: [PATCH] renderer/metal: go back to single buffering for now --- src/renderer/Metal.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/renderer/Metal.zig b/src/renderer/Metal.zig index 3a8d0d78f..4f5baaf6d 100644 --- a/src/renderer/Metal.zig +++ b/src/renderer/Metal.zig @@ -128,7 +128,8 @@ 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. - const BufferCount = 3; + // TODO(mitchellh): enable triple-buffering when we improve our frame times + const BufferCount = 1; /// The frame data, the current frame index, and the semaphore protecting /// the frame data. This is used to implement double/triple/etc. buffering.