mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-06 09:22:31 -04:00
add alternate to interp callbacks, flags on the leafdraw
This commit is contained in:
@@ -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();
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user