Fix dolphin rendering
This commit is contained in:
@@ -136,7 +136,6 @@ errorret_t consoleDraw(void) {
|
||||
&FONT_TEXTURE_DEFAULT
|
||||
));
|
||||
}
|
||||
errorChain(spriteBatchFlush());
|
||||
errorOk();
|
||||
}
|
||||
|
||||
|
||||
+1
-5
@@ -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
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user