Skip to main content
← PSoXide SDK guides and examples · SDK f2fec1c301f1 · All Cargo features enabled; check feature gates before use.

try_wait_vblank

Function try_wait_vblank 

Source
pub fn try_wait_vblank(spins: u32) -> bool
Expand description

wait_vblank with its own bound: true once the count has advanced, false after spins reads of it without a change. A false means no VBlank interrupt reached psx-rt’s handler: interrupts are masked (inside a critical_section), the counter was never installed, or a game’s handler does not chain to psx-rt’s. Does not install the counter; wait_vblank does that first.