MCPcopy Create free account
hub / github.com/XorTroll/Goldleaf / SleepWhileRender

Function SleepWhileRender

Goldleaf/source/ui/ui_Utils.cpp:203–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201 }
202
203 void SleepWhileRender(const u64 ns) {
204 const u64 start = armGetSystemTick();
205 while(true) {
206 g_MainApplication->CallForRender();
207
208 const u64 now = armGetSystemTick();
209 if(armTicksToNs(now - start) >= ns) {
210 break;
211 }
212 }
213 }
214
215}

Callers 1

ReloadMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected