fix tracy frame marker placement (after preseting *all* windows) (#4731)
# Objective The frame marker event was emitted in the loop of presenting all the windows. This would mark the frame as finished multiple times if more than one window is used. ## Solution Move the frame marker to after the `for`-loop, so that it gets executed only once.
This commit is contained in:
parent
ae580e58dd
commit
d3b2439c82
@ -63,6 +63,8 @@ pub fn render_system(world: &mut World) {
|
|||||||
if let Some(surface_texture) = texture_view.take_surface_texture() {
|
if let Some(surface_texture) = texture_view.take_surface_texture() {
|
||||||
surface_texture.present();
|
surface_texture.present();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#[cfg(feature = "tracing-tracy")]
|
#[cfg(feature = "tracing-tracy")]
|
||||||
bevy_utils::tracing::event!(
|
bevy_utils::tracing::event!(
|
||||||
@ -72,8 +74,6 @@ pub fn render_system(world: &mut World) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This queue is used to enqueue tasks for the GPU to execute asynchronously.
|
/// This queue is used to enqueue tasks for the GPU to execute asynchronously.
|
||||||
pub type RenderQueue = Arc<Queue>;
|
pub type RenderQueue = Arc<Queue>;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user