]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
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 38aa4e33ada8d62930db4634610e5f2cb8610221..c6a1c2199b62b1c5a6ec305cbf81a28bbe3803e0 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 af85fa1a332082b48d3d2d5c33345141ee274588..45cd41f15e1041e28acdfe95d0265749db116b7f 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);
        }