From: Mario Date: Sat, 10 Aug 2019 13:49:35 +0000 (+1000) Subject: Don't profile model/sound precaching, greatly reduces trace spam in the log X-Git-Tag: xonotic-v0.8.5~1419 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=cab88c9722dd8c504eb5d797d80c3e524ebfa08b;p=xonotic%2Fxonotic-data.pk3dir.git Don't profile model/sound precaching, greatly reduces trace spam in the log --- 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); }