1
General / Re: [Threading] findPath
« on: January 03, 2013, 01:39:06 pm »It's still more efficient than a container that implicitly sorts every time it is modified. If you use std::set, you don't notice but the library iterates many more times over the data structure than you might need. If you use std::vector, yes you have to iterate over it too, but because you yourself do it, you are sure it isn't done more times than necessary.I've updated my code and the speed has indeed increased! the game is now much more playable, still a little lag, but it's okay, I think I've done as much improving as I can.
Thanks for your help!!