Skip to content

Commit

Permalink
fix: tas back-compat
Browse files Browse the repository at this point in the history
unfortunately this makes loads slightly slower again :(
  • Loading branch information
ThisAMJ committed Oct 4, 2024
1 parent 37e6083 commit f214f58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Modules/Engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -719,10 +719,10 @@ void Host_AccumulateTime_Detour(float dt) {
*host_frametime_unbounded = 0;
}

// HACK: Force frametime to equal 2 ticks when loading
// HACK: Force frametime to equal a tick while loading
// Limits host_timescale effect on load times, faster loads
if (g_loadstate == LOADING && sar_loads_uncap.GetBool()) {
*host_frametime = *host_frametime_unbounded = 2.0f * engine->GetIPT();
*host_frametime = *host_frametime_unbounded = engine->GetIPT();
}

if (*host_frametime != *host_frametime_unbounded) {
Expand Down

0 comments on commit f214f58

Please sign in to comment.