Skip to content

GB_set_turbo_mode

Lior Halphon edited this page Nov 26, 2024 · 2 revisions

Definition

void GB_set_turbo_mode(GB_gameboy_t *gb, bool on, bool no_frame_skip);

In gb.h

Description

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.

Thread Safety

GB_set_turbo_mode is thread-safe and can be called from any thread and context.

Clone this wiki locally