Newer
Older
from pyboy import PyBoy, VISUAL_FREQ
FRAME_COUNT = 12000
with PyBoy("../../res/roms/demo/pocket.gb", disable_renderer=True) as pyboy:
pyboy.set_emulation_speed(0)
print(pyboy.cartridge_title())
start = time()
print(f"Time taken: {total:.2f} seconds")
print(f"Speedup: {FRAME_COUNT / total / VISUAL_FREQ:.2f}x")