SFML community forums

Help => Graphics => Topic started by: Alia5 on May 22, 2011, 11:15:00 pm

Title: SFML+Windows Aero = EXTREMLY Low FPS/Use of Software Render?
Post by: Alia5 on May 22, 2011, 11:15:00 pm
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...
Title: SFML+Windows Aero = EXTREMLY Low FPS/Use of Software Render?
Post by: lolz123 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?
Title: SFML+Windows Aero = EXTREMLY Low FPS/Use of Software Render?
Post by: Alia5 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....
Title: Re: SFML+Windows Aero = EXTREMLY Low FPS/Use of Software Render?
Post by: Alia5 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
Title: Re: SFML+Windows Aero = EXTREMLY Low FPS/Use of Software Render?
Post by: Laurent on July 12, 2013, 08:28:53 am
Did you install the latest version of your graphics card drivers?
Title: Re: SFML+Windows Aero = EXTREMLY Low FPS/Use of Software Render?
Post by: Alia5 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...
Title: Re: SFML+Windows Aero = EXTREMLY Low FPS/Use of Software Render?
Post by: Laurent 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?
Title: Re: SFML+Windows Aero = EXTREMLY Low FPS/Use of Software Render?
Post by: Alia5 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 :(
Title: Re: SFML+Windows Aero = EXTREMLY Low FPS/Use of Software Render?
Post by: Laurent on July 12, 2013, 09:54:10 am
Which version of SFML?
Title: Re: SFML+Windows Aero = EXTREMLY Low FPS/Use of Software Render?
Post by: Alia5 on July 12, 2013, 09:57:26 am
back then: 1.6
now: 2.0

back then: nvida gpu
now: amd gpu
Title: Re: SFML+Windows Aero = EXTREMLY Low FPS/Use of Software Render?
Post by: eXpl0it3r 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.
Title: Re: SFML+Windows Aero = EXTREMLY Low FPS/Use of Software Render?
Post by: Alia5 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...
Title: Re: SFML+Windows Aero = EXTREMLY Low FPS/Use of Software Render?
Post by: Laurent on July 12, 2013, 10:39:51 am
And of course other non-SFML apps running on top of OpenGL run fine?
Title: Re: SFML+Windows Aero = EXTREMLY Low FPS/Use of Software Render?
Post by: Rhimlock 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.
Title: Re: SFML+Windows Aero = EXTREMLY Low FPS/Use of Software Render?
Post by: Alia5 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...