mgba-emu / mgba

mGBA Game Boy Advance Emulator
https://mgba.io/
Mozilla Public License 2.0
5.59k stars 768 forks source link

Overclock is possible? #2833

Open ivan89el opened 1 year ago

ivan89el commented 1 year ago

Some games slow down or drop out frames, mostly 3D/2.5D. Overclocking the emulated processor would solve this problem. Sorry for my English.

ChromiusMixin commented 1 year ago

I don't know if you can overclock the CPU without speeding up audio since that's what happens on real hardware, but maybe tightening timings on the memory can do just that?

Isn't there an FPGA GBA core that gets better performance by doing that?

endrift commented 1 year ago

Yeah, you can't purely overclock the CPU without causing timing issues with other hardware. There are ways to "overclock" the RAM, but that only gets you a little bit more performance.

QcSamuel commented 1 year ago

the fpga gba core has a turbo mode(overclock) could be useful to have something similar on mgba for games that dont speed up and homebrew games

endrift commented 1 year ago

Which FPGA GBA core? There are multiple.

QcSamuel commented 1 year ago

Which FPGA GBA core? https://github.com/RobertPeip/FPGBA MiSTer port of the same core i think https://github.com/MiSTer-devel/GBA_MiSTer Also gbe+ has cpu overclock option for gb/gbc https://github.com/shonumi/gbe-plus

QcSamuel commented 1 year ago

just checked and mame has a cpu overclock option tried openlara and got solid 30fps with it

ChromiusMixin commented 1 year ago

MAME GBA also isn't very good for a fair amount of games, Mario & Luigi Superstar Saga crashes for me on MAME as soon as it attempts the first battle transition in the prologue.

SuperDavid2 commented 1 year ago

With the overclock feature on MAME GBA, it is possible to reach 60fps on Doom 2, but the graphics are a mess. The first Doom runs too fast if it's overclocked, but Doom 2 appears to run at the correct speed.

Hydra-Spectre commented 1 year ago

I want this too.