From cfe1e6ed0add3d021b66e261194b738d85b1f554 Mon Sep 17 00:00:00 2001 From: terencehill Date: Sat, 16 Oct 2010 00:34:56 +0200 Subject: [PATCH] If the entire HUD is transparent, just do NOT draw it. This improves the fps when displaying the scoreboard for example. --- qcsrc/client/hud.qc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index 71bbe7f4cd..a553e7802f 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 -- 2.39.2