Skip to content

Commit

Permalink
refactor: optimize gpuprofiler initialization and timer queries
Browse files Browse the repository at this point in the history
- change gpuprofiler initialization to always use `new_with_tracy_client`
- disable timer queries in gpuprofiler initialization
  • Loading branch information
falcucci committed Sep 22, 2024
1 parent 557236c commit 155f0fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/renderer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,9 @@ impl Renderer {
let shaders = shaders.await;

#[cfg(not(target_os = "macos"))]
let mut profiler = GpuProfiler::new_with_tracy_client(
let profiler = GpuProfiler::new_with_tracy_client(
GpuProfilerSettings {
enable_timer_queries: false,
..Default::default()
},
adapter.get_info().backend,
Expand Down

0 comments on commit 155f0fc

Please sign in to comment.