1
Graphics / Re: GetPixel() in 2.1?
« on: January 20, 2014, 12:51:50 am »
I did this and in release configuration everything works much better. Also now I use const& every time when possible. But I think it can be optimised further and it may start lagging when thee will be like 3 layers on the map.
Isn't operator[] faster than find()?
TY again!
And you should make sure you don't copy unnecessarily. For example, pass sf::Image and std::string by const-reference, not by value. You could also make isClickable() const, i.e. use map::find() instead of map::operator[].
Isn't operator[] faster than find()?
TY again!