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:
rogerman 2016-02-14 07:44:01 +00:00
parent 86f84fa21c
commit 607c3687ca
1 changed files with 4 additions and 3 deletions

View File

@ -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];