fix(renderer): Fix renderer callbacks called for nothing. (#2073)

This commit is contained in:
Quentin 2023-09-02 12:46:40 +02:00 committed by GitHub
parent cf07cfec04
commit 9149acf8d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ namespace big
{
HRESULT hooks::swapchain_present(IDXGISwapChain* this_, UINT sync_interval, UINT flags)
{
if (g_running)
if (g_running && ((flags & (UINT)DXGI_PRESENT_TEST) != (UINT)DXGI_PRESENT_TEST))
{
g_renderer->on_present();
}

View File

@ -28,7 +28,7 @@ namespace big
ImGui::Separator();
if (g.window.ingame_overlay.show_fps)
ImGui::Text("%.0f FPS", ImGui::GetIO().Framerate / 2);
ImGui::Text("%.0f FPS", ImGui::GetIO().Framerate);
if (CNetworkPlayerMgr* network_player_mgr = gta_util::get_network_player_mgr(); g.window.ingame_overlay.show_players)
ImGui::Text(std::format("Players: {}/{}", network_player_mgr->m_player_count, network_player_mgr->m_player_limit)