mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Display: Reset cycle counter on load state.
This commit is contained in:
parent
b10b24feea
commit
6f99383733
1 changed files with 11 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue