Permalink
Browse files

Display: Reset cycle counter on load state.

  • Loading branch information...
unknownbrackets committed Dec 10, 2017
1 parent b10b24f commit 6f99383733bf19cfaa295e3d3231f96af7277772
Showing with 11 additions and 2 deletions.
  1. +11 −2 Core/HLE/sceDisplay.cpp
View
@@ -240,7 +240,7 @@ struct GPUStatistics_v0 {
};
void __DisplayDoState(PointerWrap &p) {
auto s = p.Section("sceDisplay", 1, 6);
auto s = p.Section("sceDisplay", 1, 7);
if (!s)
return;
@@ -306,8 +306,17 @@ void __DisplayDoState(PointerWrap &p) {
GPUStatistics_v0 oldStats;
p.Do(oldStats);
}
gpu->DoState(p);
if (s < 7) {
u64 now = CoreTiming::GetTicks();
lastFlipCycles = now;
nextFlipCycles = now;
} else {
p.Do(lastFlipCycles);
p.Do(nextFlipCycles);
}
gpu->DoState(p);
gpu->ReapplyGfxState();
if (p.mode == p.MODE_READ) {

0 comments on commit 6f99383

Please sign in to comment.