AndreaOrru / LaiNES

Cycle-accurate NES emulator in ~1000 lines of code
BSD 2-Clause "Simplified" License
1.49k stars 122 forks source link

Fast Execution #35

Closed Kautenja closed 6 years ago

Kautenja commented 6 years ago

Is it possible to modify this code to remove all frame limiting mechanisms? For instance, if I wanted to adapt this library to allow a machine learning algorithm to process game data at something close to 1000 frames per second (rough number), would that be doable?

Removing the frame limiting mechanism in the run function of the GUI appears to provide some speedup, but are there other modifications to potentially boost this further?

Kautenja commented 6 years ago

Figured it out. Removing the framerate logic, all APU functionality, and increasing TOTAL_CYCLES in the CPU will increase the speed to where I need it to be. Closing the issue.

EDIT: a word

AndreaOrru commented 6 years ago

:+1: