From a971b742bfa63db66b293fee35d8c894b9863366 Mon Sep 17 00:00:00 2001 From: Mike Hsu Date: Tue, 6 Dec 2022 22:16:05 -0800 Subject: [PATCH] run clear trackers on render world --- crates/bevy_render/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/bevy_render/src/lib.rs b/crates/bevy_render/src/lib.rs index f595023588e768..25047caf2460ca 100644 --- a/crates/bevy_render/src/lib.rs +++ b/crates/bevy_render/src/lib.rs @@ -205,6 +205,8 @@ impl Plugin for RenderPlugin { .insert_resource(pipeline_cache) .insert_resource(asset_server); + render_app.add_system_to_stage(RenderStage::Cleanup, World::clear_trackers.at_end()); + let (sender, receiver) = bevy_time::create_time_channels(); app.insert_resource(receiver); render_app.insert_resource(sender);