sarah-walker-pcem / pcem

PCem
http://pcem-emulator.co.uk
GNU General Public License v2.0
1.52k stars 208 forks source link

Terminator Future Shock causes the emulation speed to drop massively #169

Open eddmanx opened 2 years ago

eddmanx commented 2 years ago

The game causes a massive drop in the emulation speed, to 30-36% range. Other newer and much heavier 3D games run in software mode at 100% with no issues.

Disabling the internal cache somewhat remedies the issue, but also lowers the overall performance. More details in the link below.

To Reproduce Simply install Terminator Future Shock and play it.

Expected behavior The emulation speed should stay at 100%.

Screenshots Machine screenshot in the link below.

Emulator configuration

Host machine

Additional context

https://www.vogons.org/viewtopic.php?f=9&t=88812

unreal9010 commented 2 years ago

it's a known problem, related to regressions that were introduced with the new dynamic recompiler. For now, as you already pointed out, the temporal solution is to turn off CPU caching in the Bios (works for SCUMM engine-based Lucas Arts games), although this might cause a number of games to run too slow if it all. At the moment, the best thing to do is to wait for regressions to be fixed.

eddmanx commented 2 years ago

it's a known problem, related to regressions that were introduced with the new dynamic recompiler.

Do you know the last version that doesn't have this issue?

unreal9010 commented 2 years ago

That would be v14 from 2018 since that was the last version that shipped with the old recompiler. Try that one. Note that the old recompiler isn't as fast as the new one, although it might do the job here. Developers are aware of the issue and are doing their best to fix it.