Closed Michael-Lfx closed 2 years ago
https://github.com/ConfettiFX/The-Forge/blob/076aa5dcd8fd71cc83905431c92360183c7027d9/Common_3/Renderer/Metal/MetalRenderer.mm#L3618-L3620
As Xcode suggested we should merge render command encoders when they share the same color attachments. We can get the message by Capturing GPU Frame of 01_Transformations demo.
Isn't this more of app responsibility :)
The 01_Transformations.cpp should not use cmdBindRenderTargets() to emit multiple MTLRenderCommandEncoders for example?
cmdBindRenderTargets()
Yes.
https://github.com/ConfettiFX/The-Forge/blob/076aa5dcd8fd71cc83905431c92360183c7027d9/Common_3/Renderer/Metal/MetalRenderer.mm#L3618-L3620
As Xcode suggested we should merge render command encoders when they share the same color attachments. We can get the message by Capturing GPU Frame of 01_Transformations demo.