Skip to content

Commit f48ca3b

Browse files
author
newby
committed
Enable antilag detpipe by default and move rendering rewind points
behind `rewind_debug_show`.
1 parent 2c1fa18 commit f48ca3b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ssqc/antilag.qc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,8 @@ SeekResult Seek(RewindState* target, float when) {
227227

228228
// TODO: Filter out observers, but no harm immediately.
229229
void RL_Rewind(RewindState* head, entity exclude, float when) {
230+
float show_rewind_points = CF_GetSetting("rds", "rewind_debug_show", "off");
231+
230232
printd("REWIND START %p\n", head);
231233
RL_FOR_EACH(head, rs) {
232234
if (rs->owner == exclude ||
@@ -253,7 +255,8 @@ void RL_Rewind(RewindState* head, entity exclude, float when) {
253255
rs->owner.velocity = near->velocity;
254256
rs->rewound_from = near;
255257

256-
pointparticles(particleeffectnum("fo_airblast"), near->origin);
258+
if (show_rewind_points)
259+
pointparticles(particleeffectnum("fo_airblast"), near->origin);
257260
}
258261
}
259262
printd("REWIND END\n");
@@ -329,7 +332,7 @@ float (string ps_short, string ps_setting, string ps_default) CF_GetSetting;
329332

330333
float AL_RewindPlayersExceptSelf(float farthest_rewind_point) {
331334
// Live changeagble for now.
332-
float project_detpipe = CF_GetSetting("pd", "project_detpipe", "off");
335+
float project_detpipe = CF_GetSetting("pd", "project_detpipe", "on");
333336
// Want to lower this in time, but good for testing.
334337
float project_detpipe_max_lat =
335338
CF_GetSetting("pdml", "project_max_latency", "500") / 1000;

0 commit comments

Comments
 (0)