]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
If the entire HUD is transparent, just do NOT draw it.
authorterencehill <piuntn@gmail.com>
Fri, 15 Oct 2010 22:34:56 +0000 (00:34 +0200)
committerterencehill <piuntn@gmail.com>
Fri, 15 Oct 2010 22:34:56 +0000 (00:34 +0200)
This improves the fps when displaying the scoreboard for example.

qcsrc/client/hud.qc

index 71bbe7f4cd3f215e12c93ecdc28a4dca55eb66bc..a553e7802f3bc7a2bc346c401edffb91ac51992c 100644 (file)
@@ -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