-
-
Notifications
You must be signed in to change notification settings - Fork 212
GB_set_turbo_mode
Lior Halphon edited this page Nov 26, 2024
·
2 revisions
void GB_set_turbo_mode(GB_gameboy_t *gb, bool on, bool no_frame_skip);
In gb.h
This function controls turbo mode in an emulator instance. Turbo mode has 3 different configurations:
on | no_frame_skip | Description |
---|---|---|
false |
Ignored | The instance runs normally, GB_run maintains the correct frame rate. |
true |
false |
The instance runs as fast as possible, the vblank callback is limited to 60 times per second. |
true |
true |
The instance runs as fast as possible, the vblank callback is called normally. |
GB_set_turbo_mode
is thread-safe and can be called from any thread and context.