From cab88c9722dd8c504eb5d797d80c3e524ebfa08b Mon Sep 17 00:00:00 2001 From: Mario Date: Sat, 10 Aug 2019 23:49:35 +1000 Subject: [PATCH] Don't profile model/sound precaching, greatly reduces trace spam in the log --- qcsrc/common/models/model.qh | 2 +- qcsrc/common/sounds/sound.qh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qcsrc/common/models/model.qh b/qcsrc/common/models/model.qh index 38aa4e33a..c6a1c2199 100644 --- a/qcsrc/common/models/model.qh +++ b/qcsrc/common/models/model.qh @@ -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); } diff --git a/qcsrc/common/sounds/sound.qh b/qcsrc/common/sounds/sound.qh index af85fa1a3..45cd41f15 100644 --- a/qcsrc/common/sounds/sound.qh +++ b/qcsrc/common/sounds/sound.qh @@ -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); } -- 2.39.2