Neil Roberts efadc439a4 cogl-journal: Use a pool of vertex arrays
Previously whenever the journal is flushed a new vertex array would be
created to contain the vertices. To avoid the overhead of reallocating
a buffer every time, this patch makes it use a pool of 8 buffers which
are cycled in turn. The buffers are never destroyed but instead the
data is replaced. The journal should only ever be using one buffer at
a time but we cache more than one buffer anyway in case the GL driver
is internally using the buffer in which case mapping the buffer may
cause it to create a new buffer anyway.
2011-06-01 14:41:59 +01:00
..
2011-05-16 18:36:44 +01:00
2011-05-25 16:47:38 +01:00
2011-05-16 18:36:44 +01:00
2011-05-16 18:36:44 +01:00
2010-06-01 12:08:18 +01:00
2011-05-10 17:58:41 +01:00
2011-05-16 18:36:44 +01:00
2011-05-16 18:36:44 +01:00
2011-05-16 18:36:44 +01:00
2011-05-16 18:36:44 +01:00
2011-05-10 17:58:41 +01:00
2011-05-16 18:36:44 +01:00
2010-03-03 17:02:51 +00:00