Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
General
»
Is clock memory/processor intensive?
Print
Pages: [
1
]
Author
Topic: Is clock memory/processor intensive? (Read 2220 times)
0 Members and 1 Guest are viewing this topic.
forrestcupp
Jr. Member
Posts: 57
Is clock memory/processor intensive?
«
on:
July 31, 2009, 10:38:10 pm »
Would it slow things down a lot or make my program bloated to have 10 sf::Clocks at one time?
Logged
Laurent
Administrator
Hero Member
Posts: 32498
Is clock memory/processor intensive?
«
Reply #1 on:
July 31, 2009, 10:45:06 pm »
Not at all. It's just performing a simple system call when you request GetElapsedTime().
Logged
Laurent Gomila - SFML developer
forrestcupp
Jr. Member
Posts: 57
Is clock memory/processor intensive?
«
Reply #2 on:
August 01, 2009, 04:06:39 am »
Thank you.
That's good to know. I actually figured out a better way to implement what I'm doing with only one clock. It's still good to know, though.
Logged
Print
Pages: [
1
]
SFML community forums
»
Help
»
General
»
Is clock memory/processor intensive?