another small fix to the FPS Counter (for the 2nd time)
This commit is contained in:
parent
718740ce69
commit
4a889c808d
|
@ -10230,7 +10230,7 @@ VOID WINAPI XTL::EMUPATCH(D3DDevice_GetMaterial)
|
||||||
|
|
||||||
static void UpdateCurrentMSpFAndFPS() {
|
static void UpdateCurrentMSpFAndFPS() {
|
||||||
if (g_EmuShared) {
|
if (g_EmuShared) {
|
||||||
static float currentFPSVal;
|
static float currentFPSVal = 30;
|
||||||
|
|
||||||
float currentMSpFVal = (float)(1000.0 / (currentFPSVal == 0 ? 0.001 : currentFPSVal));
|
float currentMSpFVal = (float)(1000.0 / (currentFPSVal == 0 ? 0.001 : currentFPSVal));
|
||||||
g_EmuShared->SetCurrentMSpF(¤tMSpFVal);
|
g_EmuShared->SetCurrentMSpF(¤tMSpFVal);
|
||||||
|
|
|
@ -134,7 +134,7 @@ class EmuShared : public Mutex
|
||||||
int m_FlagsLLE;
|
int m_FlagsLLE;
|
||||||
int m_XInputEnabled;
|
int m_XInputEnabled;
|
||||||
float m_MSpF;
|
float m_MSpF;
|
||||||
float m_FPS = 30;
|
float m_FPS;
|
||||||
};
|
};
|
||||||
|
|
||||||
// ******************************************************************
|
// ******************************************************************
|
||||||
|
|
Loading…
Reference in New Issue