Project

General

Profile

Emulator Issues #5666

Resident Evil Zero slows down after loading a savestate

Added by vlad.semenov.eraser about 8 years ago. Updated over 4 years ago.

Status:
Accepted
Priority:
Normal
Assignee:
-
Category:
PPC
% Done:

0%

Operating system:
N/A
Issue type:
Bug
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
Yes
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

Description

1) Resident Evil Zero

2) After loading a savestate, the emulation speed drops by half (from about 35-40 FPS to about 17-24 FPS). If not using savestates, everything works fine.

3) I believe on earlier revisions the problem was non-existent.

4)
1. Start game.
2. Press Shift-F1 to save
3. Press F1 to load.

5) 32-bit version of Dolphin 3.0-r776-dirty, runs under Windows XP SP3, nVidia GeForce 570.


Related issues

Has duplicate Emulator - Emulator Issues #5693: Resident Evil 0 slows down after loading a save state. (shift+F1, F2, F3....etc)Duplicate

Has duplicate Emulator - Emulator Issues #5946: Slowdown after Clearing Code Cache in Resident Evil 4 WiiDuplicate

Has duplicate Emulator - Emulator Issues #8448: FPS drop on save state load (Resident Evil Zero; Archives - both)Duplicate

Has duplicate Emulator - Emulator Issues #8692: Resident Evil 4 Speed CutDuplicate

Has duplicate Emulator - Emulator Issues #8693: Resident Evil 4 Thunderstorm slowdownDuplicate

History

#1 Updated by Epervier666 about 8 years ago

I have the same problem for Resident Evil Rebirth (Wii version). It seems to happend right when I save state... and get worse when I reload.
And if I just launched the game then reload a saved state, it happens too.

#2 Updated by tommyhl2.SS about 8 years ago

There are random save state issues with many games, not just these. While this is generally an issue that needs to be fixed at some point, you should just not use save states at all until then. The regular intended in-game saves work fine, use them.

#3 Updated by vlad.semenov.eraser about 8 years ago

Meanwhile, I've rolled back to the 3.0-r367 revision, which doesn't have the aforementioned problem.

#4 Updated by rdragoon about 8 years ago

Try 3.0-673 and 3.0-655, and report whether it happens in either of those revisions.

#5 Updated by vlad.semenov.eraser about 8 years ago

Both 3.0-673 and 3.0-655 suffer from the slowdown after savestate loading, and they are generally slower as well (maximum 30 FPS without savestates, while 3.0-367 produces 35-40 FPS).

#6 Updated by Sonicadvance1 about 8 years ago

If you go back and find the specific revision that broke it, it would be a lot easier for us to fix it. Going through 300+ revisions when we don't have the game or we have other projects to work on would really help us out.

#7 Updated by vlad.semenov.eraser about 8 years ago

Root of evil seems to be 3.0-629, since it features the after-load slowdown, and the previous one 3.0-601 doesn't (several revisions of the 5xx series that I tested also worked fine).

#8 Updated by rdragoon about 8 years ago

That's r77f47866dfb4fbf330292957031b1914b2ac3a3e and r330f63df80f94488655d21b535cf75a2ce0e9fa2.

I'll compile a few builds between there to narrow it down some more, in a bit.

#9 Updated by rdragoon about 8 years ago

http://www.mediafire.com/?dx3rw3ls4002b0j

Try those, and report back which is the last one that works.

#10 Updated by vlad.semenov.eraser about 8 years ago

r604 worked nicely, while r612, r616 and r627 suffered from the slowdown (and r624 failed to start the game at all)

#11 Updated by rdragoon about 8 years ago

http://www.mediafire.com/?20vby3el580l2zl Try these.

Looks like the cause was performance counters.

#12 Updated by vlad.semenov.eraser about 8 years ago

All the revisions after r604 have the slowdown issue.

#13 Updated by rdragoon about 8 years ago

rcdace9d776e3cf60503a750254fa6e738e9eb9f5 is the cause then.

#14 Updated by vlad.semenov.eraser about 8 years ago

Great, what are the plans concerning it? :)

#15 Updated by Sonicadvance1 about 8 years ago

Probably just need to save the two new variables that were added that revision to the states yea?

#16 Updated by Sonicadvance1 about 8 years ago

  • Status changed from New to Accepted

u32 numLoadStoreInst;
u32 numFloatingPointInst;

Those two variables need to be moved to the PowerPCState struct.

Jit.cpp and JitIL.cpp need to be updated to include the new locations.

Interpreter also needs to be updated to handle the performance counters.

Overall, it will be easy to fix, we just need someone to do it.
Anyone willing to post patches, it'll be welcomed.

#17 Updated by Sonicadvance1 almost 8 years ago

http://pastebin.com/VbwdpSMg

Build with that patch applied and try your savestate. It may or may not work, I can't actually test here.

#18 Updated by Sonicadvance1 almost 8 years ago

Oh right, this patch would effect the savestate version. So dump your savestates and create new ones to try it out.

#19 Updated by Sonicadvance1 almost 8 years ago

issue 5693 has been merged into this issue.

#20 Updated by Billiard26 almost 8 years ago

  • Issue type set to Other

#21 Updated by Sonicadvance1 almost 8 years ago

  • Issue type changed from Other to Bug
  • Relates to performance set to Yes
  • Priority set to Normal
  • Category set to ppc
  • Operating system N/A added

As a note, the patch didn't work, It will need to be a true fix if we want to fix the slowdowns completely. It will cause a performance hit though.

#22 Updated by Sonicadvance1 over 7 years ago

issue 5946 has been merged into this issue.

#23 Updated by xpkim11 over 7 years ago

I hate this issue.(slowdown after the Clearing block cache in RE4)

Please help me.
I would like to play RE4 with BGM and without Save.

#24 Updated by markdperry68 over 7 years ago

So was skidau's commit the cause or not? I would REALLY appreciate if one of the devs could have a look at this. I'd love to be able to use save states in RE0 again. :)

#25 Updated by burnhellpsp over 7 years ago

The "Slowdown after Clearing Code Cache in Resident Evil 4 Wii" and the "Resident Evil Zero slows down after loading a savestate" will be fixed once the devs find someone to do it, but it appear that the only one be able to do it is Henrik. :p

#26 Updated by itachijuniorpc over 7 years ago

Does anyone know if there is any news about this issue?

#27 Updated by thariel49 about 7 years ago

Same question, I want to TAS Resident evil remake, but I just came through this problem, and as I don't really know if it will be a problem later on, I think I'm gonna have to wait your answer :)

#28 Updated by riderfx3 almost 7 years ago

Hello I have got the same issue with Resident Evil Remake (Wii version) and RE Zero (Wii version)... :(

#29 Updated by fly16 almost 7 years ago

This issue is still present in 4.0-666

#30 Updated by JMC4789 over 6 years ago

This issue, at least for Resident Evil 4, has nothing to do with Savestates. Rather, savestates just save the performance slowdown that seems to inevitably happen after so long in these games.

If anyone else can confirm this is the behavior, I'll change the name of the issue.

#31 Updated by brocade41 almost 6 years ago

I just encountered a similar issue with Resident Evil Remake. I narrowed it down to build Dolphin 3.0-629. Build 601 does not have any slowdowns. I'm able to test this issue by quickly loading Resident Evil Remake and seeing the emulation speed during the very beginning boot screens. On all versions from 3.0-629 up to 4.0+, the speed will be between 70-90% and highly variable. With Dolphin 3.0 build 601 and earlier it will be at a rock solid 100% speed. It doesn't seem to be related to save states on my end.

#32 Updated by vlad.semenov.eraser almost 6 years ago

The problem seems to disappear in Dolphin 4.0 x64 version (still present in x86).

#33 Updated by skidau over 5 years ago

issue 8448 has been merged into this issue.

#34 Updated by JMC4789 over 5 years ago

issue 8693 has been merged into this issue.

#35 Updated by JMC4789 over 5 years ago

issue 8692 has been merged into this issue.

#36 Updated by Nucleoprotein over 5 years ago

Bug is still here, using r6970 right now, ie. RE0 run fine (~30FPS) until save state load, then drops to 20-15FPS.

#37 Updated by kolano almost 5 years ago

Did we forget to close this out after we retired x86? It's indicated it works fine under x64 above.

#38 Updated by Nameless over 4 years ago

Sorry to have to report, but this bug still exists, at least as of 4.0-9019. OS = Win7 Ultimate x64.

  1. Loaded up RE0 Wii version in the main hall, observed full speed 30fps.
  2. Saved state then immediately reloaded save state.
  3. Speed dropped to ~15fps, VPS also dropped ~50% to ~30vps.

I will help however I can to get this fixed, as it is extremely frustrating.

Also available in: Atom PDF