use ;
/// Global "please render another frame" flag.
///
/// This is intentionally simple:
/// - Any UI-relevant state change calls `request_frame()`.
/// - Platform runners call `take_frame_request()` in `about_to_wait`
/// to decide whether to `request_redraw()`.
static NEEDS_FRAME: AtomicBool = new;
/// Request another frame (coalesced).
/// Returns true if a frame was requested since last check, and clears the flag.
/// Non-consuming check (rarely needed).