]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Stats: disable update checking for perf (we don't use it, yet)
authorTimePath <andrew.hardaker1995@gmail.com>
Tue, 26 Jul 2016 12:47:48 +0000 (22:47 +1000)
committerTimePath <andrew.hardaker1995@gmail.com>
Tue, 26 Jul 2016 12:47:48 +0000 (22:47 +1000)
qcsrc/lib/stats.qh

index bd8b792967a5cfbba7365455c12aa6044b19b2a4..8aaacdec428e366123d197810684927ed97cf030 100644 (file)
@@ -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)