196
General / Re: Looking tips, for draving tiled background
« on: January 10, 2013, 09:42:10 am »
Thanks on the information .
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
I was checking documentation and what it actually is and does(refearring to 'sf::VertexArray'), its just a thing i was looking for.The fps i get isThen you don't have a performance issue, so I understood you wrong.
470 - 480 on release
270 - 280 on debug
with 32x24 tiles per secondWhat i was asking for any cool ideas how not to call sf::RenderWindow.draw() function so many times.Did you look into the posted links above?
Have you checkout what 'sf::VertexArray' is?
Or did you just ignore all that?What i am trying to achieve is decrease CPU usage. Even at the cost of memory.It's simply to fix, just limit your framerate. You screen anyways can't handle 300-400 images per second and thus the cycling is just a waste of power.
This can be achieve either with window.setFramerateLimit(60) or window.setVerticalSync(true), but you shouldn't mix them!
Compiler version? SFML version?Oh silly me...
This has to do with graphics, so next time please choose the right section post it in.
Did you make your benchmarks debug or release mode? Because in the end what's important is the release mode.
A quick search in the forum would've gotten you to topics like:
http://en.sfml-dev.org/forums/index.php?topic=10205.0
http://en.sfml-dev.org/forums/index.php?topic=9846.0
...
That is use a sf::VertexArray.
Don't use a random openal32.dll, use OpenAL Soft 1.14 (it's explicitely mentionned in the task tracker).Well i didn't really find much info how to get it from web.
At C:\C++\HeroesPath\main.cpp:18Its after return at closing brackets,
Continuing...
Program received signal SIGSEGV, Segmentation fault.
In ?? () (C:\Windows\system32\nvoglv32.dll)
Might be related to issue https://github.com/SFML/SFML/issues/30Ok il check it up, thanks. The search on forum is not working for me
This audio bug is really fishy, esecially that old openal32.dll fixes it..
http://www.gamedev.net/topic/635055-sfml-application-on-exit-dosent-return-0/
Mhm... when am in "game" and i press alt + tab and select other window the "game" loses focus.I am trying to minimize the application window when user alt tabs.Note that this is not the usual behavior on Windows. Alt+Tab brings the window you select to the front and gives it focus, leaving others how they are.