mirror of
https://github.com/GTAmodding/re3.git
synced 2021-02-19 17:49:54 +01:00
Limit frontend FPS to 100
This commit is contained in:
parent
c056871e07
commit
39c9a05827
@ -2056,7 +2056,13 @@ _WinMain(HINSTANCE instance,
|
|||||||
{
|
{
|
||||||
GetWindowPlacement(PSGLOBAL(window), &wp);
|
GetWindowPlacement(PSGLOBAL(window), &wp);
|
||||||
|
|
||||||
if ( wp.showCmd != SW_SHOWMINIMIZED )
|
// Famous transparent menu bug. Also see the fix in Frontend.cpp
|
||||||
|
#ifdef FIX_BUGS
|
||||||
|
float ms = (float)CTimer::GetCurrentTimeInCycles() / (float)CTimer::GetCyclesPerMillisecond();
|
||||||
|
if ((1000.0f / 100.0f) < ms && wp.showCmd != SW_SHOWMINIMIZED)
|
||||||
|
#else
|
||||||
|
if (wp.showCmd != SW_SHOWMINIMIZED)
|
||||||
|
#endif
|
||||||
RsEventHandler(rsFRONTENDIDLE, nil);
|
RsEventHandler(rsFRONTENDIDLE, nil);
|
||||||
|
|
||||||
if ( !FrontEndMenuManager.m_bMenuActive || FrontEndMenuManager.m_bLoadingSavedGame )
|
if ( !FrontEndMenuManager.m_bMenuActive || FrontEndMenuManager.m_bLoadingSavedGame )
|
||||||
|
Loading…
Reference in New Issue
Block a user