SFML community forums

Help => System => Topic started by: Bocaj on April 03, 2012, 11:09:21 pm

Title: Clock Class
Post by: Bocaj on April 03, 2012, 11:09:21 pm
Whenever I use the sf::Clock class in my program, it gets slowed down a lot.  In fact, my whole computer slows down.  What should I do about this?
Title: Re: Clock Class
Post by: Laurent on April 03, 2012, 11:17:39 pm
Quote
What should I do about this?
Don't use sf::Clock, it's a heavy class that can only be used on computers that support OpenGL 3.1.
Seriously, of course it's not slow, it simply reads the elapsed time. So the error is in your own code, and we need to see it.

And next time, please post in the correct forum. I'm really tired of lazy people who post everything in "General discussions", whereas there's a "Help" forum dedicated to each SFML module >:(
Title: Re: Clock Class
Post by: Bocaj on April 04, 2012, 02:08:55 am
OK, sorry for posting in the General (I didn't see this category...).  I just figured out what was wrong.  It was not because of the clock class though, so never mind.