mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 00:59:44 -06:00
VideoCommon: Don't round the refresh rate
We now provide a double to the FPS counter and exact values to FIFO recording and frame dumping.
This commit is contained in:
@ -242,7 +242,9 @@ FifoPlayer& FifoPlayer::GetInstance()
|
||||
void FifoPlayer::WriteFrame(const FifoFrameInfo& frame, const AnalyzedFrameInfo& info)
|
||||
{
|
||||
// Core timing information
|
||||
m_CyclesPerFrame = SystemTimers::GetTicksPerSecond() / VideoInterface::GetTargetRefreshRate();
|
||||
m_CyclesPerFrame = static_cast<u64>(SystemTimers::GetTicksPerSecond()) *
|
||||
VideoInterface::GetTargetRefreshRateDenominator() /
|
||||
VideoInterface::GetTargetRefreshRateNumerator();
|
||||
m_ElapsedCycles = 0;
|
||||
m_FrameFifoSize = static_cast<u32>(frame.fifoData.size());
|
||||
|
||||
|
Reference in New Issue
Block a user