[actor] Avoid modifying materials mid-scene to improve journal batching
authorRobert Bragg <robert@linux.intel.com>
Wed, 17 Jun 2009 17:36:27 +0000 (18:36 +0100)
committerRobert Bragg <robert@linux.intel.com>
Tue, 30 Jun 2009 16:13:34 +0000 (17:13 +0100)
commitdc1ca79398e343d06918cf1c38b72771f476f0a6
treed04e995e62a9b96c1f1b986386a71ba216a5f3a4
parent40cfaeaffc9b744d99c21c1e6cd5b57e358ff37a
[actor] Avoid modifying materials mid-scene to improve journal batching

Currently cogl_set_source_color uses a single shared material which means
each actor that uses it causes the journal to flush if the color changes.
Until we improve cogl_set_source_color to use a pool of materials that can
be recycled as the journal is flushed we avoid mid-scene material changes by
giving all actors a private material instead.
clutter/clutter-actor.c