summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/renderer/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/renderer/mod.rs b/src/renderer/mod.rs
index 3076894..9bdbe46 100644
--- a/src/renderer/mod.rs
+++ b/src/renderer/mod.rs
@@ -444,6 +444,8 @@ impl RendererState {
{
puffin::profile_scope!("Upload entity cells");
+ // TODO optimize, this is very inefficient, just build it per frame with positions and skip the lookup?
+ self.renderer_rb_entities.drain();
for entity in rb_sim_manager.rb_entities.values() {
// TODO add "needs texture update"?
for (byte, cell) in cell_buffer.iter_mut().zip(entity.cells.iter()) {