mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-25 05:25:14 +00:00
fixed non dev compile
This commit is contained in:
parent
a81d8fde26
commit
fd99cee674
2 changed files with 17 additions and 13 deletions
|
@ -59,6 +59,7 @@ bool debug_context_within(enum DebugContext ctx) {
|
|||
return sCtxDepth[ctx] > 0;
|
||||
}
|
||||
|
||||
#ifdef DEVELOPMENT
|
||||
void debug_context_set_time(enum DebugContext ctx, f64 time) {
|
||||
if (ctx >= CTX_MAX) { return; }
|
||||
sCtxTime[ctx] = time;
|
||||
|
@ -68,3 +69,4 @@ f64 debug_context_get_time(enum DebugContext ctx) {
|
|||
if (ctx >= CTX_MAX) { return 0.0; }
|
||||
return sCtxTime[ctx];
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -38,9 +38,9 @@ struct DjuiCtxDisplay {
|
|||
struct DjuiCtxDisplay *sCtxDisplay = NULL;
|
||||
|
||||
void djui_ctx_display_update(void) {
|
||||
#ifdef DEVELOPMENT
|
||||
if (!configCtxProfiler || sCtxDisplay == NULL) { return; }
|
||||
|
||||
#ifdef DEVELOPMENT
|
||||
// Time we have for a indivdual frame. If we exceed it. We are in the red.
|
||||
f64 frameTime = 1.0 / 30.0;
|
||||
s32 frameTimeMs = (s32)(frameTime * 1000000.0);
|
||||
|
@ -77,10 +77,12 @@ void djui_ctx_display_update(void) {
|
|||
}
|
||||
|
||||
void djui_ctx_display_render(void) {
|
||||
#ifdef DEVELOPMENT
|
||||
if (!configCtxProfiler || sCtxDisplay == NULL) { return; }
|
||||
|
||||
djui_rect_render(&sCtxDisplay->base);
|
||||
djui_base_render(&sCtxDisplay->base);
|
||||
#endif
|
||||
}
|
||||
|
||||
void djui_ctx_display_on_destroy(UNUSED struct DjuiBase* base) {
|
||||
|
|
Loading…
Reference in a new issue