Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Clock Class  (Read 2826 times)

0 Members and 1 Guest are viewing this topic.

Bocaj

  • Newbie
  • *
  • Posts: 32
    • View Profile
Clock Class
« 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?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Clock Class
« Reply #1 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 >:(
Laurent Gomila - SFML developer

Bocaj

  • Newbie
  • *
  • Posts: 32
    • View Profile
Re: Clock Class
« Reply #2 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.

 

anything