From 789bc692812dd95f93406acbfac0c8ee74027418 Mon Sep 17 00:00:00 2001 From: Samuliak Date: Sat, 6 Apr 2024 12:42:19 +0200 Subject: [PATCH] metal: add info about command recorder memory leaks --- src/video_core/renderer_metal/mtl_command_recorder.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/video_core/renderer_metal/mtl_command_recorder.h b/src/video_core/renderer_metal/mtl_command_recorder.h index ce974618ad..b6b7422fb1 100644 --- a/src/video_core/renderer_metal/mtl_command_recorder.h +++ b/src/video_core/renderer_metal/mtl_command_recorder.h @@ -47,6 +47,8 @@ public: private: const Device& device; + // HACK: Command buffers and encoders currently aren't released every frame due to Xcode + // crashing in Debug mode. This leads to memory leaks MTLCommandBuffer_t command_buffer = nil; MTLCommandEncoder_t encoder = nil;