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

Author Topic: SFML+Windows Aero = EXTREMLY Low FPS/Use of Software Render?  (Read 5426 times)

0 Members and 1 Guest are viewing this topic.

Alia5

  • Newbie
  • *
  • Posts: 34
    • View Profile
Hi,
A wrote a basic App that only draws 4 Sprites...
I "killed" 100% CPU usage with "sf::Sleep(0.01);" if thats important somehow...
Well anyways, if I have turned on Windows Aero i get only 0-2 FPS!!!
But if i  turn it off i get high framerates!

I can turn on Aero again after my App was started and FPS stay high, so i think SFML just wont detect my GPU wehn Aero is turned on

So is there any way to "force" SFML to use my GPU?
And if not how to turn off Aero automatically before the SFML Window opens?

Sorry if my english is poor...

lolz123

  • Sr. Member
  • ****
  • Posts: 260
    • View Profile
SFML+Windows Aero = EXTREMLY Low FPS/Use of Software Render?
« Reply #1 on: May 23, 2011, 03:45:47 pm »
I don't think SFML can software render sprites, it uses OpenGL. What graphics card do you have?
Have you heard about the new Cray super computer?  It’s so fast, it executes an infinite loop in 6 seconds.

Alia5

  • Newbie
  • *
  • Posts: 34
    • View Profile
SFML+Windows Aero = EXTREMLY Low FPS/Use of Software Render?
« Reply #2 on: May 23, 2011, 04:14:56 pm »
It cant be an Hardware Problem... See i can turn Aero on again and i still get high framerates! But well i use an Nvidia Geforce 9800GTX+

I think it an initializon Problem


Edit: Had my Computer in stand by.... Now it just works fine oO
Edit2: Seems like if Winamp is playing for some time i will get the problem

Edit3: Now WInamp has no influence on this oO

Edit4: This time even Aero has no influence -.-


Edit5:

So i now am able again to get high framerates (3000-3500 xD)

And i think sfml can use software render.. because if i have the 0-2fps bug my cpu DIES! even with the sleep command....

now, ( im able to get 3000-3500fps!) my cpu stays aut max 30% even without the sleep command....

Alia5

  • Newbie
  • *
  • Posts: 34
    • View Profile
Re: SFML+Windows Aero = EXTREMLY Low FPS/Use of Software Render?
« Reply #3 on: July 12, 2013, 08:14:23 am »
Have to open up my old thread again, sorry...
Having the same Problem again... now, with windows 8, wich hasn't got aero... and a fresh new top-notch pc...

I dont know how to work around it now, or how i could fix it...
could this be because of an windows-service i shut off?

any halp would be greatly appreciated

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: SFML+Windows Aero = EXTREMLY Low FPS/Use of Software Render?
« Reply #4 on: July 12, 2013, 08:28:53 am »
Did you install the latest version of your graphics card drivers?
Laurent Gomila - SFML developer

Alia5

  • Newbie
  • *
  • Posts: 34
    • View Profile
Re: SFML+Windows Aero = EXTREMLY Low FPS/Use of Software Render?
« Reply #5 on: July 12, 2013, 08:56:24 am »
haha yeah of course! everything works perfectly ;)
if i restart the computer sfml works like a charm too, but i dont want to always restart my pc after i debugged 3-4 times...

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: SFML+Windows Aero = EXTREMLY Low FPS/Use of Software Render?
« Reply #6 on: July 12, 2013, 09:07:19 am »
So when you start it works, and then... it starts to be slow? Is there a special event that triggers this behaviour?
Laurent Gomila - SFML developer

Alia5

  • Newbie
  • *
  • Posts: 34
    • View Profile
Re: SFML+Windows Aero = EXTREMLY Low FPS/Use of Software Render?
« Reply #7 on: July 12, 2013, 09:14:53 am »
yeah exactly like that
nope

in win7 shutting of aero before running the application seemed to do the trick, making it working again for a 1 time usage... after that i had to reenable and disable aero again...

now in win8 i dont have this option of a workaround :(

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: SFML+Windows Aero = EXTREMLY Low FPS/Use of Software Render?
« Reply #8 on: July 12, 2013, 09:54:10 am »
Which version of SFML?
Laurent Gomila - SFML developer

Alia5

  • Newbie
  • *
  • Posts: 34
    • View Profile
Re: SFML+Windows Aero = EXTREMLY Low FPS/Use of Software Render?
« Reply #9 on: July 12, 2013, 09:57:26 am »
back then: 1.6
now: 2.0

back then: nvida gpu
now: amd gpu

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: SFML+Windows Aero = EXTREMLY Low FPS/Use of Software Render?
« Reply #10 on: July 12, 2013, 10:11:39 am »
What anti-virus software are you using?
Do you use any other "strange" software that claims to make you system faster? Or anything similar?

I'm running everything fine on my Windows 8 machine with my AMD graphics card.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Alia5

  • Newbie
  • *
  • Posts: 34
    • View Profile
Re: SFML+Windows Aero = EXTREMLY Low FPS/Use of Software Render?
« Reply #11 on: July 12, 2013, 10:19:31 am »
Using avast, back then i used avira... disabling avast doesn't make any difference...

nope of course not using any software that claims to make the system faster...

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: SFML+Windows Aero = EXTREMLY Low FPS/Use of Software Render?
« Reply #12 on: July 12, 2013, 10:39:51 am »
And of course other non-SFML apps running on top of OpenGL run fine?
Laurent Gomila - SFML developer

Rhimlock

  • Jr. Member
  • **
  • Posts: 73
    • View Profile
Re: SFML+Windows Aero = EXTREMLY Low FPS/Use of Software Render?
« Reply #13 on: July 12, 2013, 10:41:44 am »
Doesn't sf:: sleep take milliseconds AS parameter?

So you dont really send your Applications to sleep with 0.001

Ich would rather set a framelimit ind your renderwindow.

Alia5

  • Newbie
  • *
  • Posts: 34
    • View Profile
Re: SFML+Windows Aero = EXTREMLY Low FPS/Use of Software Render?
« Reply #14 on: July 12, 2013, 10:49:34 am »
with or without sleep, doesnt matter ;) btw: that first post is years old and i was using 1.6 back then...


other non-sfml opengl-apps run fine yeah!

its strange cuz even the hello-world code from the visual studio "guide" only runs at 8-9fps >.<

edit: seems it fixed itself after i got visual studio closed for a while...
will keep an eye on my system to see what causes this...

Edit: Seems like the Problem comes from my stone-aged TV-capture card and its semi-working drivers...
« Last Edit: July 15, 2013, 07:36:52 pm by Alia5 »

 

anything