forked from joejulian/gio
3a3ec711d3
This change tracks materials so that only the updated materials needs to be rendered. Materials are likely cheap to render each frame, at least compared to the rest of the compute pipeline. However, the CPU fallback must transfer all changed materials to CPU memory, and a cache is a great improvement over fetching all materials every frame. Signed-off-by: Elias Naur <mail@eliasnaur.com>