SFML community forums
Help => Graphics => Topic started 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...
-
I don't think SFML can software render sprites, it uses OpenGL. What graphics card do you have?
-
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....
-
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
-
Did you install the latest version of your graphics card drivers?
-
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...
-
So when you start it works, and then... it starts to be slow? Is there a special event that triggers this behaviour?
-
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 :(
-
Which version of SFML?
-
back then: 1.6
now: 2.0
back then: nvida gpu
now: amd gpu
-
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.
-
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...
-
And of course other non-SFML apps running on top of OpenGL run fine?
-
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.
-
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...