Dynarec regressions are related to page flipping

Discussion of development and patch submission.
Post Reply
User avatar
unreal9010
Posts: 160
Joined: Sat 14 Nov, 2020 8:20 pm

Dynarec regressions are related to page flipping

Post by unreal9010 »

Like I previously suspected, dynarec regressions are indeed related to page flipping. Earlier today I experimented a bit with my custom PCem build which had the unfinished Matrox Mystique emulation enabled. I tested the old freeware game called Bubble Puzzle '97 to see how it would work with this card. Selecting the "page flipping via Direct X" option caused the emulation speed of my Pentium 2 350 virtual machine to drop down to 70%, however, selecting the "page flipping via game" option allowed the game to run at rock solid 100%.
This isn't the only game with such issue. As mentioned earlier this year, I tested the 1996 game Time Commando which had its "flipping" option set to off by default. Using this setting, the game wasn't much playable as the emulation speed jumped between 65-75%. Turning the "flipping" option on, however, enabled the game to run at 100% the whole time. Time Commando shares the same engine with Little Big Adventure 2. The latter isn't much playable without disabling the internal CPU cache in the BIOS as the emulation speed would drop down to 60%. Unlike Time Commando, LBA2 has no flipping option available.
I wish PCem had an option to generate a log file so that I would be able to see what causes dynarec to regress when changing the flipping options mentioned above.
Nevertheless, this might be of use to developers/maintainers of PCem and its derivatives.
tr.StEalTH
Posts: 55
Joined: Sun 12 Feb, 2017 5:58 pm

Re: Dynarec regressions are related to page flipping

Post by tr.StEalTH »

:geek: :ugeek: hmm
duotone
Posts: 2
Joined: Tue 07 Nov, 2023 4:32 pm

Re: Dynarec regressions are related to page flipping

Post by duotone »

Those games are running less than 60fps inside the emulation? Any chance vsync plays a role here?
User avatar
unreal9010
Posts: 160
Joined: Sat 14 Nov, 2020 8:20 pm

Re: Dynarec regressions are related to page flipping

Post by unreal9010 »

No, it's about emulator's speed (and therefore its capability to properly handle processors at certain frequencies in specific cases) being dropped due to faults in its code and not fps.
User avatar
unreal9010
Posts: 160
Joined: Sat 14 Nov, 2020 8:20 pm

Re: Dynarec regressions are related to page flipping

Post by unreal9010 »

Just tried v14, the last version of PCem that included the old dynamic recompiler.
I'm testing Mobile Pentium 300 MMX (my host CPU is i9 12900KF). No regressions so far and no dips below 100% even on Future Shock and SkyNet.
Post Reply