From: TimePath Date: Tue, 26 Jul 2016 12:47:48 +0000 (+1000) Subject: Stats: disable update checking for perf (we don't use it, yet) X-Git-Tag: xonotic-v0.8.2~700^2~28 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9138c1a436ada9164fa4c380524e1ef46082d070;p=xonotic%2Fxonotic-data.pk3dir.git Stats: disable update checking for perf (we don't use it, yet) --- diff --git a/qcsrc/lib/stats.qh b/qcsrc/lib/stats.qh index bd8b79296..8aaacdec4 100644 --- a/qcsrc/lib/stats.qh +++ b/qcsrc/lib/stats.qh @@ -27,7 +27,7 @@ USING(vectori, vector); #define _STAT(id) g_stat_##id #define REGISTER_STAT_2(id, T) \ T _STAT(id); \ - T CAT(_STAT(id), _prev); \ + /* T CAT(_STAT(id), _prev); */ \ REGISTER(Stats, STAT_##id, m_id, new_pure(stat)) \ { \ if (#T == "vector" || #T == "vectori") { \ @@ -38,8 +38,8 @@ USING(vectori, vector); [[accumulate]] void stats_get() \ { \ T it = getstat_##T(STAT_##id.m_id); \ - if (it != CAT(_STAT(id), _prev)) \ - CAT(_STAT(id), _prev) = _STAT(id) = it; \ + /* if (it != CAT(_STAT(id), _prev)) \ + CAT(_STAT(id), _prev) = */ _STAT(id) = it; \ } #define REGISTER_STAT_3(x, T, expr) REGISTER_STAT_2(x, T) #elif defined(SVQC)