mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
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
1 changed files with 7 additions and 7 deletions
|
@ -63,15 +63,15 @@ pub fn render_system(world: &mut World) {
|
|||
if let Some(surface_texture) = texture_view.take_surface_texture() {
|
||||
surface_texture.present();
|
||||
}
|
||||
|
||||
#[cfg(feature = "tracing-tracy")]
|
||||
bevy_utils::tracing::event!(
|
||||
bevy_utils::tracing::Level::INFO,
|
||||
message = "finished frame",
|
||||
tracy.frame_mark = true
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "tracing-tracy")]
|
||||
bevy_utils::tracing::event!(
|
||||
bevy_utils::tracing::Level::INFO,
|
||||
message = "finished frame",
|
||||
tracy.frame_mark = true
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue