From 7270ac54634961506044d6893bdb5b81baf904fa Mon Sep 17 00:00:00 2001 From: zilmar Date: Thu, 15 Jun 2017 05:07:18 +1000 Subject: [PATCH] playing with Over clocking --- Source/Project64-core/N64System/Mips/SystemTiming.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Project64-core/N64System/Mips/SystemTiming.cpp b/Source/Project64-core/N64System/Mips/SystemTiming.cpp index defcf7d95..db1b01a13 100644 --- a/Source/Project64-core/N64System/Mips/SystemTiming.cpp +++ b/Source/Project64-core/N64System/Mips/SystemTiming.cpp @@ -44,6 +44,7 @@ void CSystemTimer::Reset() void CSystemTimer::SetTimer(TimerType Type, uint32_t Cycles, bool bRelative) { + Cycles *= 4; if (Type >= MaxTimer || Type == UnknownTimer) { g_Notify->BreakPoint(__FILE__, __LINE__); @@ -90,7 +91,7 @@ uint32_t CSystemTimer::GetTimer(TimerType Type) { return 0x7FFFFFFF; } - return (uint32_t)CyclesToTimer; + return (uint32_t)(CyclesToTimer / 4); } void CSystemTimer::StopTimer(TimerType Type)