From: Juhu <5894800-Juhu_@users.noreply.gitlab.com> Date: Thu, 15 Sep 2022 10:35:37 +0000 (+0200) Subject: strafehud: set slickdetector default granularity to 1 instead of 4 for improved perfo... X-Git-Tag: xonotic-v0.8.6~136^2~24 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=261d384791d312d89850e570874241cd83f9c1e9;p=xonotic%2Fxonotic-data.pk3dir.git strafehud: set slickdetector default granularity to 1 instead of 4 for improved performance --- diff --git a/_hud_common.cfg b/_hud_common.cfg index c236229f2..d982ad6e3 100644 --- a/_hud_common.cfg +++ b/_hud_common.cfg @@ -185,7 +185,7 @@ seta hud_panel_strafehud_direction_alpha "0" "opacity of the direction caps whic seta hud_panel_strafehud_direction_width "0.25" "stroke width of the direction caps which indicate the direction the player is currently strafing towards (relative to the panel height)" seta hud_panel_strafehud_direction_length "0.02" "length of the horizontal component of the direction caps which indicate the direction the player is currently strafing towards (relative to the panel width)" seta hud_panel_strafehud_slickdetector_range "200" "range of the slick detector in qu, \"0\" to disable" -seta hud_panel_strafehud_slickdetector_granularity "4" "value from 0 to 4 which defines how exact the search for slick should be, higher values may yield better results but require more computation" +seta hud_panel_strafehud_slickdetector_granularity "1" "value from 0 to 4 which defines how exact the search for slick should be, higher values may yield better results but require more computation" seta hud_panel_strafehud_slickdetector_color "0 1 1" "color of the slick detector indicator" seta hud_panel_strafehud_slickdetector_alpha "0.5" "opacity of the slick detector indicator" seta hud_panel_strafehud_slickdetector_height "0.125" "height of the slick detector indicator (relative to the panel height)" diff --git a/qcsrc/client/hud/panel/strafehud.qh b/qcsrc/client/hud/panel/strafehud.qh index 19365f8a1..72dec4c6b 100644 --- a/qcsrc/client/hud/panel/strafehud.qh +++ b/qcsrc/client/hud/panel/strafehud.qh @@ -40,7 +40,7 @@ float autocvar_hud_panel_strafehud_direction_alpha = 0; float autocvar_hud_panel_strafehud_direction_width = 0.25; float autocvar_hud_panel_strafehud_direction_length = 0.02; float autocvar_hud_panel_strafehud_slickdetector_range = 200; -int autocvar_hud_panel_strafehud_slickdetector_granularity = 4; +int autocvar_hud_panel_strafehud_slickdetector_granularity = 1; vector autocvar_hud_panel_strafehud_slickdetector_color = '0 1 1'; float autocvar_hud_panel_strafehud_slickdetector_alpha = 0.5; float autocvar_hud_panel_strafehud_slickdetector_height = 0.125;