From 39e44b0482c402e2ddbb30722875e29e4308f3df Mon Sep 17 00:00:00 2001 From: "memberTwo.mb2" Date: Mon, 17 Nov 2008 10:06:18 +0000 Subject: [PATCH] TIMER_RATIO set to 12. Bus clock should be 1/3 of CPU clock. This could slowdown games but it's indeed more accurate. So, possible perf hack there. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1194 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Core/Src/HW/SystemTimers.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Source/Core/Core/Src/HW/SystemTimers.cpp b/Source/Core/Core/Src/HW/SystemTimers.cpp index 819537f3b8..acc21f4098 100644 --- a/Source/Core/Core/Src/HW/SystemTimers.cpp +++ b/Source/Core/Core/Src/HW/SystemTimers.cpp @@ -38,10 +38,12 @@ u32 CPU_CORE_CLOCK = 486000000u; // 486 mhz (its not 485, stop bugg s64 fakeDec; -//ratio of TB and Decrementer to clock cycles -//4 or 8? not really sure, but think it's 8 +// ratio of TB and Decrementer to clock cycles +// With TB clk at 1/4 of BUS clk +// and it seems BUS clk is really 1/3 of CPU clk +// note: ZWW is ok and faster with TIMER_RATIO=8 though. enum { - TIMER_RATIO = 8 + TIMER_RATIO = 12 }; int et_Dec;