deltabeard / Peanut-GB

A Game Boy (DMG) emulator single header library written in C99. Performance is prioritised over accuracy.
https://projects.deltabeard.com/peanutgb/
283 stars 40 forks source link

gb: perform halt optimisations #54

Closed deltabeard closed 2 years ago

deltabeard commented 2 years ago

This change is expected to make a minor improvement to performance.

On halt:

This requires extensive testing to ensure game compatibility isn't reduced.

deltabeard commented 2 years ago

Work so far can be found in https://github.com/deltabeard/Peanut-GB/tree/halt_optimisations Frame rate increases when playing Pokemon Red on an RP2040 (with no display) was from 130 to 500 fps.

Serial terminal showing frame rate

deltabeard commented 2 years ago

Merged. 8e0a61fcfd89259d179a28a48b9043ed324cbf6e