From 0ef5dadd18721c552196c8b1192155b0f94f9841 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Magalh=C3=A3es?= Date: Tue, 6 Feb 2024 11:14:42 +0000 Subject: [PATCH] docs: initial emulation speed trying --- src/python/boytacean/pyboy.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/python/boytacean/pyboy.py b/src/python/boytacean/pyboy.py index 36c2a193..c2020365 100644 --- a/src/python/boytacean/pyboy.py +++ b/src/python/boytacean/pyboy.py @@ -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, @@ -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):