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

Author Topic: CPU core loaded to 100% when sfml app is launched  (Read 1041 times)

0 Members and 1 Guest are viewing this topic.

excentio

  • Newbie
  • *
  • Posts: 21
    • View Profile
CPU core loaded to 100% when sfml app is launched
« 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 :


eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10990
    • View Profile
    • development blog
    • Email
AW: CPU core loaded to 100% when sfml app is launched
« Reply #1 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.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

excentio

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: CPU core loaded to 100% when sfml app is launched
« Reply #2 on: February 08, 2015, 08:45:14 pm »
thanks for help, it now uses 1 - 2% of cpu :3

 

anything