add alternate to interp callbacks, flags on the leafdraw

This commit is contained in:
Jasper St. Pierre
2026-04-19 02:43:25 -07:00
parent 6c56c224c9
commit f5dcea8525
6 changed files with 42 additions and 32 deletions
+5 -1
View File
@@ -70,6 +70,7 @@
#include "dusk/config.hpp"
#include "dusk/imgui/ImGuiConsole.hpp"
#include "tracy/Tracy.hpp"
#include "f_pc/f_pc_draw.h"
// --- GLOBALS ---
s8 mDoMain::developmentMode = -1;
@@ -233,8 +234,8 @@ void main01(void) {
mDoGph_gInf_c::updateRenderSize();
dusk::frame_interp::begin_frame(pacing.is_interpolating, pacing.do_sim_tick, pacing.interpolation_step);
if (pacing.is_interpolating) {
dusk::frame_interp::begin_frame(pacing.do_sim_tick, pacing.interpolation_step);
if (pacing.do_sim_tick) {
dusk::frame_interp::set_ui_tick_pending(true);
mDoCPd_c::read();
@@ -242,6 +243,9 @@ void main01(void) {
fapGm_Execute();
mDoAud_Execute();
dusk::game_clock::reset_accumulator();
} else {
// run draw functions for anything specially marked to handle interp on non-sim ticks
fpcM_DrawIterater((fpcM_DrawIteraterFunc)fpcM_Draw);
}
dusk::frame_interp::interpolate();
{