3 GB_set_rendering_disabled
Lior Halphon edited this page 2024-12-01 01:09:32 +02:00

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.