summaryrefslogtreecommitdiff
path: root/functions.h
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-03-26 21:15:09 +0000
committerDarkvater <darkvater@openttd.org>2006-03-26 21:15:09 +0000
commita91c52e16909976b40951cf2893f2349e9ebf25d (patch)
tree07ce18ba583aad9caf062c352c2632ba1ea394c6 /functions.h
parent4125aa21f8dfc72a60bf70b890b95c2187425112 (diff)
downloadopenttd-a91c52e16909976b40951cf2893f2349e9ebf25d.tar.xz
(svn r4125) - Feature: Add a general TIC() TOC() mechanism using rdtsc or something similar on non-i386 architectures to performance-tune (critical) code. Some systems are probably missing, but those can be added later.
Diffstat (limited to 'functions.h')
-rw-r--r--functions.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/functions.h b/functions.h
index cf558f3ae..18fd82d5e 100644
--- a/functions.h
+++ b/functions.h
@@ -116,12 +116,6 @@ static inline TileIndex RandomTile(void) { return TILE_MASK(Random()); }
uint32 InteractiveRandom(void); /* Used for random sequences that are not the same on the other end of the multiplayer link */
uint InteractiveRandomRange(uint max);
-
-// Used for profiling
-#define TIC() { extern uint32 _rdtsc(void); uint32 _xxx_ = _rdtsc(); static float __avg__;
-#define TOC(s) _xxx_ = _rdtsc() - _xxx_; __avg__=__avg__*0.99+_xxx_*0.01; printf("%s: %8d %f\n", s, _xxx_,__avg__); }
-
-
void SetDate(uint date);
/* facedraw.c */
void DrawPlayerFace(uint32 face, int color, int x, int y);