Skip to content

GB_set_rendering_disabled

Lior Halphon edited this page Nov 30, 2024 · 3 revisions

Definition

void GB_set_rendering_disabled(GB_gameboy_t *gb, bool disabled);

In gb.h

Description

Call this function with true to disable video output in an emulator instance. This action will cause the run loop of the emulator instance to consume less CPU usage. This is useful in scenarios where video output is unnecessary (e.g., sound-only applications or automations).

Thread Safety

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

Clone this wiki locally