3 ms·
You should use maps in game engines parsimoniously and when you do, use integer keys like a hash or something. This should be evident for any game programmer.
by JohnLeTigre 10y ago
You should use maps in game engines parsimoniously and when you do, use integer keys like a hash or something. This should be evident for any game programmer.
If you are at the point of inventing a more complex structure to compensate for programmer mistakes and/or malpractice, I suspect you should fire or reassign people instead of coding this.
But meh, I'm probably getting too old/grumpy... lol
- adamrezich 10y agoSTL containers aren't the most optimized things for game programming ever... otherwise the EASTL[0] wouldn't be a thing. [0] https://github.com/electronicarts/EASTL https://github.com/electronicarts/EASTL
- JohnLeTigre 10y agoIt's also very optimal not to use a map when you don't really need one, that's my point. I agree eastl is cool, I clearly remember smilling when it first came out.