feat: tracing

This commit is contained in:
Nova
2022-12-02 20:46:28 -05:00
parent 692ee95500
commit 42d2a41d57
9 changed files with 82 additions and 49 deletions

View File

@@ -135,7 +135,6 @@ impl CoreSurface {
sk: &StereoKit,
renderer: &mut Gles2Renderer,
output: Output,
time: Duration,
log: &Logger,
on_mapped: F,
if_mapped: M,
@@ -182,9 +181,13 @@ impl CoreSurface {
if_mapped(data);
});
send_frames_surface_tree(&wl_surface, &output, time, None, |_, _| {
Some(output.clone())
});
send_frames_surface_tree(
&wl_surface,
&output,
Duration::from_secs_f64(sk.time_get()),
None,
|_, _| Some(output.clone()),
);
}
pub fn set_material_offset(&self, material_offset: u32) {