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

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