diff options
| author | XTra.KrazzY <XTra.KrazzY@gmail.com> | 2009-08-23 20:12:46 +0000 |
|---|---|---|
| committer | XTra.KrazzY <XTra.KrazzY@gmail.com> | 2009-08-23 20:12:46 +0000 |
| commit | 16d9a65d253e71eb545d28f3a38e41279ac4f8cd (patch) | |
| tree | b7fdff52db384c322f4de2f006ad73c801d3829b /Source/Core | |
| parent | 092989dffc2a59c5b19f2f4470396ea308cd534c (diff) | |
less timeGetTime calls, which showed up in TD's profiles. Minor speed boost when idle skipping
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4040 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Core/Src/HW/VideoInterface.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Core/Core/Src/HW/VideoInterface.cpp b/Source/Core/Core/Src/HW/VideoInterface.cpp index 99d918e91a..53334467ad 100644 --- a/Source/Core/Core/Src/HW/VideoInterface.cpp +++ b/Source/Core/Core/Src/HW/VideoInterface.cpp @@ -1094,9 +1094,10 @@ void Update() // Calculate actual refresh rate static u64 LastTick = 0; static s64 UpdateCheck = timeGetTime() + 1000, TickProgress = 0; - if (UpdateCheck < (int)timeGetTime()) + s64 curTime = timeGetTime(); + if (UpdateCheck < (int)curTime) { - UpdateCheck = timeGetTime() + 1000; + UpdateCheck = curTime + 1000; TickProgress = CoreTiming::GetTicks() - LastTick; // Calculated CPU-GPU synced ticks for the dual core mode too // NOTICE_LOG(VIDEO, "Removed: %s Mhz", ThS(SyncTicksProgress / 1000000, false).c_str()); |
