Don't profile model/sound precaching, greatly reduces trace spam in the log
authorMario <mario@smbclan.net>
Sat, 10 Aug 2019 13:49:35 +0000 (23:49 +1000)
committerMario <mario@smbclan.net>
Sat, 10 Aug 2019 13:49:35 +0000 (23:49 +1000)
qcsrc/common/models/model.qh
qcsrc/common/sounds/sound.qh

index 38aa4e3..c6a1c21 100644 (file)
@@ -17,7 +17,7 @@ CLASS(Model, Object)
             LOG_WARNF("Missing model: \"%s\"", s);
             return;
         }
-        profile(sprintf("precache_model(\"%s\")", s));
+        //profile(sprintf("precache_model(\"%s\")", s));
         precache_model(s);
         strcpy(this.model_str_, s);
     }
index af85fa1..45cd41f 100644 (file)
@@ -130,7 +130,7 @@ CLASS(Sound, Object)
                TC(Sound, this);
                string s = _Sound_fixpath(this.sound_str());
                if (!s) return;
-               profile(sprintf("precache_sound(\"%s\")", s));
+               //profile(sprintf("precache_sound(\"%s\")", s));
                precache_sound(s);
                strcpy(this.sound_str_, s);
        }