mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-09-28 17:49:21 -04:00
Delete the now unused ui_tick getter/setter
This commit is contained in:
@@ -29,7 +29,6 @@ bool s_replacementsActive = false;
|
||||
bool s_syncPresentation = false;
|
||||
|
||||
float s_step = 0.0f;
|
||||
bool s_uiTickPending = false;
|
||||
uint64_t s_simTickSeq = 0;
|
||||
uint64_t s_observedPresentationEpoch = 0;
|
||||
|
||||
@@ -186,17 +185,6 @@ float get_interpolation_step() {
|
||||
return presentation_sync_active() ? 1.0f : s_step;
|
||||
}
|
||||
|
||||
void set_ui_tick_pending(bool value) {
|
||||
if (s_uiTickPending == value) {
|
||||
return;
|
||||
}
|
||||
s_uiTickPending = value;
|
||||
}
|
||||
|
||||
bool get_ui_tick_pending() {
|
||||
return is_enabled() ? s_uiTickPending : true;
|
||||
}
|
||||
|
||||
void record_final_mtx(Mtx m, const void* key) {
|
||||
if (!s_recording || m == nullptr) {
|
||||
return;
|
||||
|
||||
@@ -21,10 +21,6 @@ bool is_enabled();
|
||||
|
||||
bool should_capture();
|
||||
|
||||
// TODO: These should be phased out as UI is progressively updated to use game_clock
|
||||
void set_ui_tick_pending(bool value);
|
||||
bool get_ui_tick_pending();
|
||||
|
||||
void record_final_mtx(Mtx m, const void* key);
|
||||
void record_final_mtx(Mtx m);
|
||||
|
||||
|
||||
@@ -285,7 +285,6 @@ void main01(void) {
|
||||
if (timing.separatePresentation) {
|
||||
if (timing.numSimTicks > 0) {
|
||||
dusk::interp::begin_frame(0.0f);
|
||||
dusk::interp::set_ui_tick_pending(true);
|
||||
for (int i = 0; i < timing.numSimTicks; ++i) {
|
||||
if (timing.interpolating) {
|
||||
dusk::interp::begin_sim_tick();
|
||||
@@ -307,10 +306,8 @@ void main01(void) {
|
||||
fpcM_DrawIterater((fpcM_DrawIteraterFunc)fpcM_Draw);
|
||||
cAPIGph_Painter();
|
||||
dusk::interp::end_presentation();
|
||||
dusk::interp::set_ui_tick_pending(false);
|
||||
} else {
|
||||
dusk::interp::begin_frame(0.0f);
|
||||
dusk::interp::set_ui_tick_pending(true);
|
||||
dusk::game_clock::begin_sim_tick();
|
||||
|
||||
// Game Inputs
|
||||
|
||||
Reference in New Issue
Block a user