Fix dolphin rendering

This commit is contained in:
2026-05-01 23:11:59 -05:00
parent 36db89c36e
commit ff77f8cfa0
4 changed files with 4 additions and 9 deletions
-1
View File
@@ -136,7 +136,6 @@ errorret_t consoleDraw(void) {
&FONT_TEXTURE_DEFAULT
));
}
errorChain(spriteBatchFlush());
errorOk();
}
+1 -5
View File
@@ -17,11 +17,6 @@ ui_t UI;
errorret_t uiInit(void) {
memoryZero(&UI, sizeof(ui_t));
// cameraInitOrthographic(&UI.camera);
// UI.camera.orthographic.left = 0;
// UI.camera.orthographic.bottom = 0;
errorOk();
}
@@ -30,6 +25,7 @@ void uiUpdate(void) {
errorret_t uiRender(void) {
errorChain(uiFPSDraw());
errorChain(spriteBatchFlush());
errorChain(consoleDraw());
errorChain(spriteBatchFlush());
+1 -1
View File
@@ -40,7 +40,7 @@ errorret_t uiFPSDraw() {
);
color_t textColor;
if(fps >= 60.0f) {
if(fps >= 55.0f) {
textColor = COLOR_GREEN;
} else if(fps >= 45.0f) {
textColor = COLOR_YELLOW;
+2 -2
View File
@@ -9,8 +9,8 @@
double_t timeGetRealDolphin(void) {
// "Returns time in ticks since 2000"
u64 timeInMillis = PPCTicksToMs(SYS_Time());
double_t timeSeconds = (double_t)timeInMillis / 1000.0;
u64 timeInUs = PPCTicksToUs(SYS_Time());
double_t timeSeconds = (double_t)timeInUs / 1000000.0;
// Time to adjust time from 2000 to 1970, in seconds
double_t timeOffset = 946684800.0;