Game Development Community

GUI vs. static sprites

by Ahmed Murad Akhter · in iTorque 2D · 01/29/2010 (4:17 pm) · 1 replies

Hi,
I wanted to know whether using static sprites in a separate level instead of the built in GUI elements provides any advantages in terms of speed. The menus are taking too long to load for me so I thought maybe I could try scripting the button logic into static sprites...

Regards,

#1
01/29/2010 (6:49 pm)
VERY much speed increase. All static sprites are highly optimised compared to the gui, the gui is not really aimed at a mobile device. The flexibility of the sceneObject is all you need.

all mouse, key and other events filter down... same with static sprite. The same way the sample uses the sprite as a button, it can be used for menus (its encouraged, keeping textures in one sheet, source rects, optimising loading and performance).