Petr Schreiber
27-01-2009, 16:09
Excellent Simone!,
just one idea - I guess the palettes are standardized shapes, all same looking.
So maybe you could create display list of palette and use that, instead of box.
This will have tiny impact on performance on good NVIDIA and ATi cards, but Intels could be happier with display lists, even with such a simple object.
If you define list as:
TBGL_NewList %lCubo
TBGL_Box 1, 1, 1
TBGL_EndList
... so without any specific color/texture, you can then still post process it via TBGL_EntitySetColor to make each box look differently.
I attach code for you here.
just one idea - I guess the palettes are standardized shapes, all same looking.
So maybe you could create display list of palette and use that, instead of box.
This will have tiny impact on performance on good NVIDIA and ATi cards, but Intels could be happier with display lists, even with such a simple object.
If you define list as:
TBGL_NewList %lCubo
TBGL_Box 1, 1, 1
TBGL_EndList
... so without any specific color/texture, you can then still post process it via TBGL_EntitySetColor to make each box look differently.
I attach code for you here.