EQ2Interface

EQ2Interface (https://www.eq2interface.com/forums/index.php)
-   UI Developer Discussion (https://www.eq2interface.com/forums/forumdisplay.php?f=3)
-   -   an inefficient window using far too many triangles? (https://www.eq2interface.com/forums/showthread.php?t=6572)

Othesus 08-05-2006 09:07 AM

an inefficient window using far too many triangles?
 
I was just poking around in the UI builder some more today. When you click the show triangles box does that mean that the game engine is drawing the UI to the screen as textures on triangles? I haven't done any DirectX coding so I have no idea how this works. This post from Silverfrost seems to suggest that it does.

I noticed that there was a window in the MainHUD group that has very dense rows of triangles. Looking a little closer it turned out to be the tracking window. Under MainHUD - Tracking - Tablepage there are two objects called Tableframe. One is hidden, perhaps left over from an older version, and the one that is showing creates about 900 triangles! This seems to be because it has the property RStyleDefault = /FrameStyles.ThinCornered.rect. If you look at FrameStyles.ThinCornered.rect the e, s, and w image rectangles are really small, covering only 1 or 2 pixels! If you double click on the SourceRect property a window pops up showing you which piece of the dds image is being used. I'm not a UI expert at all but it this some kind of mistake?

I noticed that the FrameStyles.ThinRounded.rect also has this problem. It's used in the IME - VerticalIMEPage window creating about 600 triangles there.


All times are GMT -5. The time now is 01:18 AM.

vBulletin® - Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© MMOUI