]> Pileus Git - grits/commit
Improve performance of GritsPoly
authorAndy Spencer <andy753421@gmail.com>
Mon, 17 Oct 2011 07:57:35 +0000 (07:57 +0000)
committerAndy Spencer <andy753421@gmail.com>
Mon, 17 Oct 2011 07:57:35 +0000 (07:57 +0000)
commitc562b3271ee3644b6fdb4282535e43152656cf41
treee771d7b08963e41439ba4a88816b157674dd661c
parent0be2da7a65019a3d5b0fc2938200ba8cdb72d0a0
Improve performance of GritsPoly

Use separate display lists, and only create them and perform
tessellation when they are actually used.

This is especially useful for large number of polygons which aren't
always displayed (or may never be displayed).

Generating the display lists from the first draw() also avoids a large
number of idle callbacks.
src/objects/grits-poly.c
src/objects/grits-poly.h