mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-07 03:17:22 -04:00
Merge branch 'main' of https://github.com/TakaRikka/dusk
This commit is contained in:
@@ -227,10 +227,6 @@ void JFWDisplay::endGX() {
|
||||
}
|
||||
|
||||
void JFWDisplay::beginRender() {
|
||||
#if TARGET_PC
|
||||
aurora_begin_frame();
|
||||
#endif
|
||||
|
||||
if (field_0x40) {
|
||||
JUTProcBar::getManager()->wholeLoopEnd();
|
||||
}
|
||||
@@ -342,10 +338,6 @@ void JFWDisplay::endFrame() {
|
||||
JUTProcBar::getManager()->setCostFrame(retrace_cnt - prevFrame);
|
||||
prevFrame = retrace_cnt;
|
||||
}
|
||||
|
||||
#if TARGET_PC
|
||||
aurora_end_frame();
|
||||
#endif
|
||||
}
|
||||
|
||||
void JFWDisplay::waitBlanking(int param_0) {
|
||||
|
||||
@@ -680,6 +680,7 @@ void mDoGph_gInf_c::setWideZoomLightProjection(Mtx& m) {
|
||||
#if TARGET_PC
|
||||
void mDoGph_gInf_c::setWindowSize(AuroraWindowSize const& size) {
|
||||
JUTVideo::getManager()->setWindowSize(size);
|
||||
dComIfGp_setWindow(0, 0.0f, 0.0f, getWidth(), getHeight(), 0.0f, 1.0f, 0, 2);
|
||||
mFader->mBox.set(0, 0, getWidth(), getHeight());
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -172,18 +172,24 @@ void main01(void) {
|
||||
|
||||
VIWaitForRetrace();
|
||||
|
||||
#if TARGET_PC
|
||||
if (!aurora_begin_frame()) {
|
||||
DuskLog.debug("aurora_begin_frame returned false, skipping draw this frame");
|
||||
continue;
|
||||
}
|
||||
#endif
|
||||
|
||||
// EXECUTE GAME LOGIC & RENDER
|
||||
// This calls mDoGph_Painter -> JFWDisplay -> GX Functions
|
||||
fapGm_Execute();
|
||||
|
||||
mDoAud_Execute();
|
||||
|
||||
aurora_end_frame();
|
||||
|
||||
#if TARGET_PC
|
||||
frameLimiter.Sleep(DUSK_FRAME_PERIOD);
|
||||
#endif
|
||||
|
||||
//aurora_end_frame();
|
||||
|
||||
} while (true);
|
||||
|
||||
exit:;
|
||||
|
||||
Reference in New Issue
Block a user