From c6ea0d010b05d6f8bc02eb2a0515887a009df603 Mon Sep 17 00:00:00 2001 From: ReinUsesLisp Date: Tue, 7 Apr 2020 20:51:56 -0300 Subject: [PATCH] qt/bootmanager: Remove unnecessary glBindFramebuffer Presentation context always has GL_DRAW_FRAMEBUFFER_BINDING as zero. There is no need to bind the default framebuffer constantly. According to Nsight this was using ~0.7ms per frame and it broke renderdoc captures. --- src/yuzu/bootmanager.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/yuzu/bootmanager.cpp b/src/yuzu/bootmanager.cpp index eaded2640c..7b211bd329 100644 --- a/src/yuzu/bootmanager.cpp +++ b/src/yuzu/bootmanager.cpp @@ -224,7 +224,6 @@ public: } context->MakeCurrent(); - glBindFramebuffer(GL_DRAW_FRAMEBUFFER, 0); if (Core::System::GetInstance().Renderer().TryPresent(100)) { context->SwapBuffers(); glFinish();