Modified to increase FPS

pull/35/head
AtomicBottle 1 year ago committed by GitHub
parent b90ad4ee5e
commit a75b86d363
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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);
}
}
}
}

Loading…
Cancel
Save