MCPcopy Create free account
hub / github.com/doldecomp/mkdd / endFrame

Method endFrame

libs/JSystem/JFramework/JFWDisplay.cpp:342–371  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

340}
341
342void JFWDisplay::endFrame() {
343 JUTProcBar::getManager()->cpuEnd();
344
345 if (mIsWaiting) {
346 JUTProcBar::getManager()->gpWaitStart();
347 switch (JUTXfb::getManager()->getBufferNum()) {
348 case 1:
349 break;
350 case 2:
351 JFWDrawDoneAlarm();
352 GXFlush();
353 break;
354 case 3:
355 JFWDrawDoneAlarm();
356 GXFlush();
357 break;
358 default:
359 break;
360 }
361
362 JUTProcBar::getManager()->gpWaitEnd();
363 JUTProcBar::getManager()->gpEnd();
364 }
365
366 static u32 prevFrame = VIGetRetraceCount();
367 u32 retrace_cnt = VIGetRetraceCount();
368 JUTProcBar::getManager()->setCostFrame(retrace_cnt - prevFrame);
369 prevFrame = retrace_cnt;
370
371}
372
373void JFWDisplay::waitBlanking(int param_0) {
374 while (param_0-- > 0) {

Callers 1

endFrameFunction · 0.80

Calls 8

JFWDrawDoneAlarmFunction · 0.85
VIGetRetraceCountFunction · 0.85
cpuEndMethod · 0.80
gpWaitStartMethod · 0.80
getBufferNumMethod · 0.80
gpWaitEndMethod · 0.80
gpEndMethod · 0.80
setCostFrameMethod · 0.80

Tested by

no test coverage detected