another small fix to the FPS Counter (for the 2nd time)

This commit is contained in:
Luca D'Amico 2017-08-11 14:39:14 +02:00
parent 718740ce69
commit 4a889c808d
2 changed files with 2 additions and 2 deletions

View File

@ -10230,7 +10230,7 @@ VOID WINAPI XTL::EMUPATCH(D3DDevice_GetMaterial)
static void UpdateCurrentMSpFAndFPS() {
if (g_EmuShared) {
static float currentFPSVal;
static float currentFPSVal = 30;
float currentMSpFVal = (float)(1000.0 / (currentFPSVal == 0 ? 0.001 : currentFPSVal));
g_EmuShared->SetCurrentMSpF(&currentMSpFVal);

View File

@ -134,7 +134,7 @@ class EmuShared : public Mutex
int m_FlagsLLE;
int m_XInputEnabled;
float m_MSpF;
float m_FPS = 30;
float m_FPS;
};
// ******************************************************************