MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / frame_sync

Method frame_sync

tests/test_pager_code.py:188–191  ·  view source on GitHub ↗

Frame rate limiter (60fps target).

(self)

Source from the content-addressed store, hash-verified

186 time.sleep(ms / 1000.0)
187
188 def frame_sync(self):
189 """Frame rate limiter (60fps target)."""
190 time.sleep(1/60)
191 return self.get_ticks()
192
193 # ========== DRAWING PRIMITIVES ==========
194 def pixel(self, x, y, color):

Callers

nothing calls this directly

Calls 2

get_ticksMethod · 0.95
sleepMethod · 0.45

Tested by

no test coverage detected