Sign in to follow this  
Chris_N

Fastest GUI Rendering tecnique?

Recommended Posts

Chris_N    126
What of these is fastest of rendering the Gui elements( windows( not the operating system :) ).. 1. Construct a quad and apply a terxture to it.. 2. Using sprites. and what is the pros/cons of using these different tecniques? / Christoffer Nyberg

Share this post


Link to post
Share on other sites
cozman    583
I think you're going to have to clarify, how are these two different, when I draw sprites I draw a quad with a texture, so I'm not clear on how they are different. If you are asking which is faster using 3D accelerated quads or drawing directly to the screen (like GDI on Windows) the answer is 3D accelerated quads unless the user doesn't have a graphics card.

Share this post


Link to post
Share on other sites
demonkoryu    980
If you think you must optimize GUI rendering, perhaps using vertex buffers or the like, forget it. Just render them. Use sprites or whatever you like.

Share this post


Link to post
Share on other sites
d000hg    1199
In terms of 'fast' I'd think development speed is the important thing. Even a fancy GUI element will only have maybe 20-50 polys so you'll have to try quite hard to get even 1000 GUI polygons on screen.

Share this post


Link to post
Share on other sites
stroma    218
with one texture sprites you can prevent costly state changes for different textures in gui "easily" and when you r dealing with gui minimum state change is more importatnt than drawing speed in most cases. ;)

Share this post


Link to post
Share on other sites
Rendering a GUI using almost any method would be fast. Considering that any window would have a maximum of 2 polygons (if you want a non-quadrilateral shaped window, use alpha map collision). You would simply have a textured quad, with x amount of textures. Each button would have 2 polys, scrollbar 6-8 etc... (the same rule applies for non quadrilateral components). The only real speed issue is the traversal through the windows to the components, but even that is not too much trouble. I do however find though, that using OpenGL, rendering a large 2D window with 3D objects also does tend to lower the FPS a little. (For an example of what I have done, check my engine in my sig.)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this