Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Performance hit with Images for GUI, Sprites any better?

Author
Message
TheeLord
16
Years of Service
User Offline
Joined: 23rd Jan 2008
Location: Chicago
Posted: 18th Dec 2010 21:13
I notice a big framerate hit when I use images for my GUI, I'm guessing this is not the proper way to make a UI correct? Would this perform much better with Sprites??
TheeLord
16
Years of Service
User Offline
Joined: 23rd Jan 2008
Location: Chicago
Posted: 19th Dec 2010 07:40
/bumpidy if someone would have some insight on this I would appreciate it
Indicium
16
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 19th Dec 2010 22:39
Sprites are much faster than Images.

Matty H
16
Years of Service
User Offline
Joined: 7th Oct 2008
Location: England
Posted: 19th Dec 2010 23:17
Does anyone know if using planes(3D) is faster than sprites? I think I read somewhere that it os but I have no idea where I read it, I do remember them saying that sprites are slow.

Dar13
16
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 20th Dec 2010 05:37
Quote: "Does anyone know if using planes(3D) is faster than sprites? I think I read somewhere that it os but I have no idea where I read it, I do remember them saying that sprites are slow."

For large amounts I think planes are faster, since drawing many simple polygons is easier to push to the GPU than to draw many possibly conflicting pixels with alpha information.

I think that's right, but since IanM just updated the drawing routine for sprites I'm not sure.


Matty H
16
Years of Service
User Offline
Joined: 7th Oct 2008
Location: England
Posted: 20th Dec 2010 21:36
Quote: "For large amounts I think planes are faster, since drawing many simple polygons is easier to push to the GPU than to draw many possibly conflicting pixels with alpha information."


Thanks for the info, I may do a speed comparison test sometime to see how much faster planes are.

TheeLord
16
Years of Service
User Offline
Joined: 23rd Jan 2008
Location: Chicago
Posted: 21st Dec 2010 01:48
Great, thank you for your help. I will need to rewrite my GUI code to use Sprites instead then. blllahh shoulda looked into that first I suppose...

Login to post a reply

Server time is: 2024-11-19 14:51:13
Your offset time is: 2024-11-19 14:51:13