sf::Time time = c.getElapsedTime();
c.restart();
unsigned int ms = time.asMilliseconds();
fps_counter += ms;
=>
fps_counter+=c.restart().asMilliseconds();
FPS_REFRESH
Macro in c++ = no-no (I'm guessing it's macro, I put 16 there, maybe you have your constant there wrong).
window.close();
Redundant.
sprintf(buffer, "%d - frames per second", av);
C and potentially unsafe for anything non-trivial, I use boost.format instead for printf-like formating into console, file, string streams.
std::stringstream ss;
ss<<boost::format("%1% frames per second")%some_number;
window.setTitle(ss.str());
Never ever do this. It doesn't matter if it's just for testing or whatever.
Really? Warum nicht?
Oh and static_cast<int>() instead of (int) or int() like he says.
Exploiter, you cannot clear a window,
renderwindow yes but not plain window.