From a75b86d363e9a4c2cb15a7d9d9544cf17013fea5 Mon Sep 17 00:00:00 2001 From: AtomicBottle <84610772+atombottle@users.noreply.github.com> Date: Fri, 26 Jan 2024 09:24:05 +0800 Subject: [PATCH] Modified to increase FPS --- apex_guest/Client/Client/overlay.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apex_guest/Client/Client/overlay.cpp b/apex_guest/Client/Client/overlay.cpp index 5c90fe9..5a9e58d 100644 --- a/apex_guest/Client/Client/overlay.cpp +++ b/apex_guest/Client/Client/overlay.cpp @@ -346,9 +346,9 @@ DWORD Overlay::CreateplaceholderOverlay() g_pd3dDeviceContext->ClearRenderTargetView(g_mainRenderTargetView, clear_color_with_alpha); ImGui_ImplDX11_RenderDrawData(ImGui::GetDrawData()); - g_pSwapChain->Present(1, 0); // Present with vsync + g_pSwapChain->Present(0, 0); // Modified to increase FPS - std::this_thread::sleep_for(std::chrono::milliseconds(1)); + //std::this_thread::sleep_for(std::chrono::milliseconds(1));// Modified to increase FPS } ClickplaceholderThrough(true); @@ -774,4 +774,4 @@ void Overlay::DrawplaceholderHealth(float placeholderx, float placeholdery, int DrawQuadFilled(sssss1, sssss2, sssss3, sssss4, shieldCol); } } -} \ No newline at end of file +}