FifoPlayer: Use VI derived timing, not hardcoded 60Hz

This commit is contained in:
booto 2015-08-10 15:53:23 +08:00
parent 8d6c39a89d
commit f6e4a8e680
1 changed files with 2 additions and 1 deletions

View File

@ -15,6 +15,7 @@
#include "Core/HW/GPFifo.h"
#include "Core/HW/Memmap.h"
#include "Core/HW/SystemTimers.h"
#include "Core/HW/VideoInterface.h"
#include "Core/PowerPC/PowerPC.h"
#include "VideoCommon/BPMemory.h"
@ -169,7 +170,7 @@ FifoPlayer::FifoPlayer() :
void FifoPlayer::WriteFrame(const FifoFrameInfo &frame, const AnalyzedFrameInfo &info)
{
// Core timing information
m_CyclesPerFrame = SystemTimers::GetTicksPerSecond() / 60;
m_CyclesPerFrame = SystemTimers::GetTicksPerSecond() / VideoInterface::TargetRefreshRate;
m_ElapsedCycles = 0;
m_FrameFifoSize = frame.fifoDataSize;