mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 04:38:49 +00:00
FifoPlayer: Use VI derived timing, not hardcoded 60Hz
This commit is contained in:
parent
8d6c39a89d
commit
f6e4a8e680
1 changed files with 2 additions and 1 deletions
|
@ -15,6 +15,7 @@
|
||||||
#include "Core/HW/GPFifo.h"
|
#include "Core/HW/GPFifo.h"
|
||||||
#include "Core/HW/Memmap.h"
|
#include "Core/HW/Memmap.h"
|
||||||
#include "Core/HW/SystemTimers.h"
|
#include "Core/HW/SystemTimers.h"
|
||||||
|
#include "Core/HW/VideoInterface.h"
|
||||||
#include "Core/PowerPC/PowerPC.h"
|
#include "Core/PowerPC/PowerPC.h"
|
||||||
#include "VideoCommon/BPMemory.h"
|
#include "VideoCommon/BPMemory.h"
|
||||||
|
|
||||||
|
@ -169,7 +170,7 @@ FifoPlayer::FifoPlayer() :
|
||||||
void FifoPlayer::WriteFrame(const FifoFrameInfo &frame, const AnalyzedFrameInfo &info)
|
void FifoPlayer::WriteFrame(const FifoFrameInfo &frame, const AnalyzedFrameInfo &info)
|
||||||
{
|
{
|
||||||
// Core timing information
|
// Core timing information
|
||||||
m_CyclesPerFrame = SystemTimers::GetTicksPerSecond() / 60;
|
m_CyclesPerFrame = SystemTimers::GetTicksPerSecond() / VideoInterface::TargetRefreshRate;
|
||||||
m_ElapsedCycles = 0;
|
m_ElapsedCycles = 0;
|
||||||
m_FrameFifoSize = frame.fifoDataSize;
|
m_FrameFifoSize = frame.fifoDataSize;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue