fix(web): use browser-safe render timing

This commit is contained in:
Hakan Seven committed 2026-08-13 23:57:51 +03:00
1 parent 0ea5a10570
commit e58bef39dc
2 files changed
+11 -11

No files matched your search

+1 -1
View File
@@ -692,7 +692,7 @@ fn mesh_click_result<'a>(
eye: glam::DVec3,
bounds: Rectangle,
) -> Option<(f64, Handle, glam::DVec3)> {
let profile = crate::perf::enabled().then(std::time::Instant::now);
let profile = crate::perf::enabled().then(iced::time::Instant::now);
let mut set_count = 0usize;
let mut bound_hits = 0usize;
let mut exact_triangles = 0usize;