Skip to content

Commit

Permalink
docs: initial emulation speed trying
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Feb 6, 2024
1 parent 49bc3e4 commit 0ef5dad
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/python/boytacean/pyboy.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,12 @@ class PyBoy(GameBoy):
PyBoy compatible class for the GameBoy emulator, should
be able to be used as a drop-in replacement for PyBoy that
makes use of Boytacean as the runtime.
:see: https://github.com/Baekalfen/PyBoy/blob/master/pyboy/pyboy.py
"""

_emulation_speed: float | None = None

def __init__(
self,
gamerom_file,
Expand Down Expand Up @@ -215,7 +219,10 @@ def __exit__(self, exc_type, exc_value, traceback):
self.stop()

def set_emulation_speed(self, speed: float):
# @TODO: implement emulation speed control
# @TODO: implement emulation speed control, this
# should affect how the next_frame method behaves
# and handle the speed of the emulation
self._emulation_speed = speed
print("Missing emulation speed control")

def tick(self):
Expand Down

0 comments on commit 0ef5dad

Please sign in to comment.