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

Author Topic: ~40% CPU is used running sfml  (Read 2260 times)

0 Members and 1 Guest are viewing this topic.

c0d3r9

  • Newbie
  • *
  • Posts: 12
    • View Profile
~40% CPU is used running sfml
« on: February 09, 2018, 09:06:33 pm »
Is that normal?
I only test it with the code "green circle" of the sfml site.
~20%  are used from the *.exe  and ~20% from a "system" task in taskmanager.

40% for a simple circle?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10819
    • View Profile
    • development blog
    • Email
Re: ~40% CPU is used running sfml
« Reply #1 on: February 09, 2018, 09:21:50 pm »
If you tell your computer to do something as fast as possible what do you think will happen? One core of your CPU will get maxed out.

If you tell your computer to redraw a green circle as fast as possible, even if the monitor can't even display things at that rate, what do you think will happen?

The question has been asked many, many times already. A quick search would have also answered it. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

c0d3r9

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: ~40% CPU is used running sfml
« Reply #2 on: February 10, 2018, 01:59:04 am »
Oh yes....logical....my mistake  :o

 

anything