Cocoa Port:
- Fix bug where the HUD wouldn’t report the correct FPS if more than one display window is in use.
This commit is contained in:
parent
86f84fa21c
commit
607c3687ca
|
@ -947,13 +947,14 @@ volatile bool execute = true;
|
|||
NDS_GetCPULoadAverage(loadAvgARM9, loadAvgARM7);
|
||||
pthread_rwlock_unlock(&threadParam.rwlockCoreExecute);
|
||||
|
||||
// The timer should fire every 0.5 seconds, so only take the frame
|
||||
// count every other instance the timer fires.
|
||||
_isTimerAtSecond = !_isTimerAtSecond;
|
||||
|
||||
for (CocoaDSOutput *cdsOutput in cdsOutputList)
|
||||
{
|
||||
if ([cdsOutput isKindOfClass:[CocoaDSDisplay class]])
|
||||
{
|
||||
// The timer should fire every 0.5 seconds, so only take the frame
|
||||
// count every other instance the timer fires.
|
||||
_isTimerAtSecond = !_isTimerAtSecond;
|
||||
if (_isTimerAtSecond)
|
||||
{
|
||||
[(CocoaDSDisplay *)cdsOutput takeFrameCount];
|
||||
|
|
Loading…
Reference in New Issue