Files
InstanceBrick--nightcap/include/runtime
vii 718e67f9e1 perf(runtime): rest the engine pump between polls instead of spinning
The main thread polls nativeCallMessagesFromMainThread 146k times a second
with nothing to do. Between polls it now rests 100 us: nanosleep when the
governor is performance, TPAUSE (C0.2) when the CPU has WAITPKG, a spin
otherwise. Sleeping under a power-saving governor lets the render thread's
core clock down and drops frames, which is why TPAUSE is the default there.
MOCKTAIL_ENGINE_PUMP_REST=sleep|tpause|spin overrides. The profile trace
gains a slice for pumps that ran a message.
2026-09-18 15:36:54 -05:00
..
2026-09-14 13:05:24 +03:00
2026-09-14 12:34:09 +03:00
2026-09-14 12:34:09 +03:00
2026-09-06 11:45:32 +03:00
2026-09-06 11:45:32 +03:00
2026-09-06 11:45:32 +03:00
2026-08-22 16:33:16 +03:00
2026-08-16 22:04:43 +03:00