(svn r16544) -Codechange: use double-linked list for vehicle position caches in order to improve performance (~5% with many vehicles)

This commit is contained in:
smatz
2009-06-09 17:20:06 +00:00
parent 86f6a61d3b
commit d2ad6d38be
2 changed files with 10 additions and 29 deletions

View File

@@ -100,8 +100,8 @@ public:
/* Boundaries for the current position in the world and a next hash link.
* NOSAVE: All of those can be updated with VehiclePositionChanged() */
Rect coord;
Vehicle *next_hash;
Vehicle *next_new_hash;
Vehicle *next_hash, **prev_hash;
Vehicle *next_new_hash, **prev_new_hash;
Vehicle **old_new_hash;
SpriteID colourmap; // NOSAVE: cached colour mapping