Skip to content

GB_run_frame

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

Definition

uint64_t GB_run_frame(GB_gameboy_t *gb);

In gb.h

Description

Runs an emulator instance until a vblank callback is called. Returns the number of time passed, in units of 8MHz (8,388,608Hz) ticks. Unlike GB_run, this function does not handle timekeeping and will not sleep.

Thread Safety

GB_run_frame must not be called if the instance is being run in any thread, including the current one (via a callback).

See Also

Clone this wiki locally