Store an inverted copy of lastOCfactor.

The inverse operation is more common, especially when games check the
timer rapidly. So we do the division once and store the inverted copy.
This commit is contained in:
Scott Mansell
2016-03-24 04:42:13 +13:00
parent 407f86e01a
commit 27beef1ff4
3 changed files with 14 additions and 8 deletions

View File

@ -30,7 +30,7 @@ extern s64 g_globalTimer;
extern u64 g_fakeTBStartValue;
extern u64 g_fakeTBStartTicks;
extern int g_slicelength;
extern float g_lastOCFactor;
extern float g_lastOCFactor_inverted;
void Init();
void Shutdown();