Locking and grouping quads together (text based items)

If you found a bug in our library or on our website, please report it in this section. In this forum you can also make concrete suggestions or feature requests.

Moderators: CEGUI MVP, CEGUI Team

tx
Just popping in
Just popping in
Posts: 15
Joined: Mon Jan 15, 2007 02:42

Locking and grouping quads together (text based items)

Postby tx » Sat Mar 10, 2007 15:12

Hi!

Correct me if I am wrong, but every text based item has it's own quad for each letter.

Wouldn't it be more effecient to be able to lock it and group them together to a big texture on a big quad. Ive noticed a great performance drop when using large amount of text.

maxim
Just popping in
Just popping in
Posts: 10
Joined: Wed Mar 07, 2007 05:09

Re: Locking and grouping quads together (text based items)

Postby maxim » Mon Mar 12, 2007 03:52

tx wrote:Hi!

Correct me if I am wrong, but every text based item has it's own quad for each letter.

Wouldn't it be more effecient to be able to lock it and group them together to a big texture on a big quad. Ive noticed a great performance drop when using large amount of text.

You could optimize this in renderer's side by grouping all the quads using same texture together and then issuing only a single rendering command for your 3D-rendered api of choice. Especially with the D3D9 the overhead of issuing DrawPrimitive()-comman d is huge.

LennyH
Quite a regular
Quite a regular
Posts: 92
Joined: Thu Nov 30, 2006 20:50

Postby LennyH » Mon Mar 12, 2007 14:10

If you think that's bad, wait until you want to use tiling when modifying the looknfeel :p These sort of optimizations should be seriously considered and implemented. Nothing like keeping everything running quickly to make us all happy :)


Return to “Bug Reports, Suggestions, Feature Requests”

Who is online

Users browsing this forum: Bing [Bot] and 2 guests