LaurentGomila/SFML — pull request #317 by cforfang (2012-11-17 20:08:39+00:00)
Title: Speedup for debugging: don't create std::string on every call to glCheckError

Hi,

I was getting ~10 FPS when debugging in VS2012, and doing a performance analysis seems to indicate a lot of the time spent is simply creating std::strings on each call to ```sf::priv::glCheckError(__FILE__, __LINE__);```.

This seems really unnecessary as the string is only needed once something actually goes wrong, so I changed it accordingly.

With the patch I get ~100 instead of ~10 FPS when debugging.

Cheers,
\-\-
Christian