SFML community forums

Help => General => Topic started by: excentio on February 08, 2015, 08:21:46 pm

Title: CPU core loaded to 100% when sfml app is launched
Post by: excentio on February 08, 2015, 08:21:46 pm
hello there guys, I have a problem, when I'm compiling that "test" code for sfml, I see that one of my core immediately become loaded from 1 - 3% to 80 - 100% and that's kinda strange, isn't that too much for an sfml or maybe that's my hardware issue ? Haven't tested this on other computers, here are screenshots :
(http://imghost.in/img/2015-02/08/9mxmztc41c86kc4fkqaow2p6m.png)
(http://imghost.in/img/2015-02/08/nue3w319qcy0frzipvsoy35yh.png)
Title: AW: CPU core loaded to 100% when sfml app is launched
Post by: eXpl0it3r on February 08, 2015, 08:28:19 pm
You're not limiting the framerate, as such your application will run as fast as possible maxing your CPU core.

Either enable vsync or the set a frame limit, see the documentation.
Title: Re: CPU core loaded to 100% when sfml app is launched
Post by: excentio on February 08, 2015, 08:45:14 pm
thanks for help, it now uses 1 - 2% of cpu :3