fix(renderer): Fix renderer callbacks called for nothing. (#2073)
This commit is contained in:
parent
cf07cfec04
commit
9149acf8d8
@ -6,7 +6,7 @@ namespace big
|
|||||||
{
|
{
|
||||||
HRESULT hooks::swapchain_present(IDXGISwapChain* this_, UINT sync_interval, UINT flags)
|
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();
|
g_renderer->on_present();
|
||||||
}
|
}
|
||||||
|
@ -28,7 +28,7 @@ namespace big
|
|||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
|
|
||||||
if (g.window.ingame_overlay.show_fps)
|
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)
|
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)
|
ImGui::Text(std::format("Players: {}/{}", network_player_mgr->m_player_count, network_player_mgr->m_player_limit)
|
||||||
|
Reference in New Issue
Block a user