| spring: develop 3c25f920 | [ Diff ] [ Back to Repository ] | |||
| Author | Committer | Branch | Timestamp | Parent |
|---|---|---|---|---|
| jK | jK | develop | 2011-11-10 01:19:48 | develop 6fe31efb |
| Changeset | use boost::unordered_map in NamedTextures (a lot faster than std::map when indexing) Note: including <boost/unordered_map.hpp> gives streflop/cmath name resolve conflict. So you can't include it in the .h, that's why I moved the containers to the .cpp Note2: NamedTextures is used in Lua's gl.Texture which may get called very often per drawframe, so this change should give a significant speedup in Lua rendering. |
|||
| mod - rts/Rendering/Textures/NamedTextures.cpp | [ Diff ] [ File ] | |||
| mod - rts/Rendering/Textures/NamedTextures.h | [ Diff ] [ File ] | |||
