TheCherno / Sparky

Cross-Platform High Performance 2D/3D game engine for people like me who like to write code.
Apache License 2.0
1.1k stars 222 forks source link

Added caching for uniform locations #45

Closed mertcanekiz closed 8 years ago

vsalavatov commented 9 years ago

I think that better to use unordered_map (hash table; ~O(1) on query) (c++11) because it is faster than usual map (RB tree; (O(log2(size)) + not so pretty hidden constant) on query). PS Sorry for my english

mertcanekiz commented 9 years ago

You are right, I have updated my changes

TheCherno commented 8 years ago

Closed due to being obsolete. If you believe this is still an issue, please submit a new pull request.