Page 1 of 1

Locking and grouping quads together (text based items)

Posted: Sat Mar 10, 2007 15:12
by tx
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.

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

Posted: Mon Mar 12, 2007 03:52
by maxim
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.

Posted: Mon Mar 12, 2007 14:10
by LennyH
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 :)