Skip to content
Snippets Groups Projects

Support for Python

Merged João Magalhães requested to merge joamag/python into master
Compare and Show latest version
6 files
+ 236
13
Compare changes
  • Side-by-side
  • Inline
Files
6
+ 2
2
from time import time
from boytacean import GameBoy
from boytacean import GameBoy, VISUAL_FREQ
FRAME_COUNT = 12000
@@ -10,5 +10,5 @@ for _ in range(FRAME_COUNT):
gb.next_frame()
total = time() - start
print(f"Time taken: {total:.2f} seconds")
print(f"Speedup: {FRAME_COUNT / total / 60:.2f}x")
print(f"Speedup: {FRAME_COUNT / total / VISUAL_FREQ:.2f}x")
gb.save_image("pocket.png")
Loading