Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 728 Bytes

File metadata and controls

23 lines (15 loc) · 728 Bytes

GUI Loop Library (gui-loop)

Overview

gui-loop centralizes frame timing and scheduling logic for GUI runtime loops.

Import

loop := import('gui-loop')

Exports

  • frameIntervalNt(window) - target frame interval in nanoseconds
  • frameMaxDtNt(window) - maximum clamped frame delta in nanoseconds
  • markUrgentFrameIfResizeDispatch(window, step) - marks immediate redraw on resize-related Win32 dispatch events
  • maybeRunFrame(window, onFrame, force, publish) - runs frame callback when due and emits frame event through publish
  • sleepUntilNextFrame(window) - backend-specific idle sleep until next frame

Notes

  • GUI uses this module internally and re-exports compatibility wrappers.