renderer/metal: re-enable triple buffer

This commit is contained in:
Mitchell Hashimoto
2024-04-28 14:57:27 -07:00
parent bb138becc5
commit 22702b6941

View File

@ -132,8 +132,7 @@ pub const GPUState = struct {
// is comptime because there isn't a good reason to change this at // 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, // runtime and there is a lot of complexity to support it. For comptime,
// this is useful for debugging. // this is useful for debugging.
// TODO(mitchellh): enable triple-buffering when we improve our frame times const BufferCount = 3;
const BufferCount = 1;
/// The frame data, the current frame index, and the semaphore protecting /// The frame data, the current frame index, and the semaphore protecting
/// the frame data. This is used to implement double/triple/etc. buffering. /// the frame data. This is used to implement double/triple/etc. buffering.