Permalink
Browse files

Merge pull request #10382 from unknownbrackets/max-flips

Display: Reset cycle counter on load state
  • Loading branch information...
hrydgard committed Dec 10, 2017
2 parents 9ee6d72 + 1776726 commit 86ff40f50934edbbf956b456db9e04ee90c94f0e
Showing with 13 additions and 3 deletions.
  1. +13 −3 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,11 +306,21 @@ void __DisplayDoState(PointerWrap &p) {
GPUStatistics_v0 oldStats;
p.Do(oldStats);
}
gpu->DoState(p);
gpu->ReapplyGfxState();
if (s < 7) {
u64 now = CoreTiming::GetTicks();
lastFlipCycles = now;
nextFlipCycles = now;
} else {
p.Do(lastFlipCycles);
p.Do(nextFlipCycles);
}
gpu->DoState(p);
if (p.mode == p.MODE_READ) {
gpu->ReapplyGfxState();
if (hasSetMode) {
gpu->InitClear();
}

0 comments on commit 86ff40f

Please sign in to comment.