From: terencehill Date: Fri, 15 Oct 2010 22:34:56 +0000 (+0200) Subject: If the entire HUD is transparent, just do NOT draw it. X-Git-Tag: xonotic-v0.1.0preview~267^2~6 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=cfe1e6ed0add3d021b66e261194b738d85b1f554;p=xonotic%2Fxonotic-data.pk3dir.git If the entire HUD is transparent, just do NOT draw it. This improves the fps when displaying the scoreboard for example. --- diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index 71bbe7f4c..a553e7802 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -4920,6 +4920,9 @@ void HUD_Main (void) hud_fontsize = HUD_GetFontsize("hud_fontsize"); + if(!autocvar__hud_configure && !hud_fade_alpha) + return; + // Drawing stuff // HUD configure visible grid