Jump to content
  • Advertisement
Sign in to follow this  
riuthamus

Drawing Sprites using SpriteBatch

This topic is 2341 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

What is the best way to draw sprites on the screen for a UI? We are currently using sprite batch from SlimDX and are having FPS issues when the inventory for our system is called. Thousands of UI's are far more complex than ours and I just dont understand how they take little to no FPS hit while we take 20 - 30 fps hit for drawing a few objects.

Any guidance or help would be appreciated. Maybe I am missing something obvious... which sucks but yeah, thanks again. Edited by riuthamus

Share this post


Link to post
Share on other sites
Advertisement

take 20 - 30 fps hit

Measurement in fps is worthless (30 of1000 <> 30 of 50), what is the real time in ms ?

I still use immediate opengl to draw my gui with a few hundred icons, it has a performance impact and I will get rid of it in the future, but in my case when the inventory is open, you don't need to keep up high fps. Edited by Ashaman73

Share this post


Link to post
Share on other sites

[quote name='riuthamus' timestamp='1342157780' post='4958652']
take 20 - 30 fps hit

Measurement in fps is worthless (30 of1000 <> 30 of 50), what is the real time in ms ?

I still use immediate opengl to draw my gui with a few hundred icons, it has a performance impact and I will get rid of it in the future, but in my case when the inventory is open, you don't need to keep up high fps.
[/quote]

wouldnt that be an issue with running a directx setup though? we have nothing to manage openGL at this point... you make a good point that it doesnt matter so long as the players ability to work with the UI is not hindered.

Share this post


Link to post
Share on other sites

What is the best way to draw sprites on the screen for a UI? We are currently using sprite batch from SlimDX and are having FPS issues when the inventory for our system is called. Thousands of UI's are far more complex than ours and I just dont understand how they take little to no FPS hit while we take 20 - 30 fps hit for drawing a few objects.

Any guidance or help would be appreciated. Maybe I am missing something obvious... which sucks but yeah, thanks again.


Unless you have an enormous ammount GUI stuff i cant see a reason that using sprite would slow you down. I do all my drawing with primitives and zero batching and can handle quite a few sprites. I think you might have some other issue. Is is really text heavy? Might need more information on your process of drawing the GUI. What sort of FPS are you actually seeing? below 30? Edited by JWBaker

Share this post


Link to post
Share on other sites
No, our stuff runs at 150 - 310, depending if your running around or standing still, near water, or other common FPS spikes. Once you open the UI the FPS drops from 150 to 120, close it and it goes back. There is no real delay that a person would see in MS as with the responsivness of the UI but.... that doesnt mean it doesnt exist. we go from 1.2 ms to 2.3 when the UI is open and then 2.3 to 1.2 when closed. More or less we are trying to be cautionary at this point so that we dont get down the road and realize we have a serious issue with the UI. Thanks, ill get telanor in here to explain it a bit better and give you some solid examples. Edited by riuthamus

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!