Improvements to SimDictionary for when you have a large number of objects in the game. Under light load (i.e. under 5000 objects) this code actually runs slower that the stock simdictionary. When you exceed 5000 objects, the template class actually runs faster and more consistently.

This commit is contained in:
Vincent Gee 2014-11-04 06:30:35 -05:00
parent 378a933894
commit a91e5a2590
4 changed files with 116 additions and 17 deletions

View file

@ -31,6 +31,10 @@
//general, the information here is global for your entire codebase, applying
//not only to your game proper, but also to all of your tools.
//If you plan to have less than 5000 objects use the Classic SimDictionary, if you plan to have more than
//5000 objects use the new SimDictionary.
#define USE_CLASSIC_SIMDICTIONARY
/// What's the name of your application? Used in a variety of places.
#define TORQUE_APP_NAME "Empty"