From 443b18729e57701f308e559881082edcad9b2da0 Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Sat, 18 May 2024 17:35:03 +0100 Subject: [PATCH] Enable GPU timestamp queries --- src/main.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index e448a7e..ec627ba 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,7 +4,10 @@ mod renderer; use std::time::Instant; use anyhow::Result; -use crawl::winit::event::{Event, WindowEvent}; +use crawl::{ + wgpu, + winit::event::{Event, WindowEvent}, +}; use renderer::VoxelRenderer; fn main() -> Result<()> { @@ -13,6 +16,7 @@ fn main() -> Result<()> { crawl::ContextBuilder::new() .with_title("BEAVER") .with_vsync(false) + .with_features(wgpu::Features::default() | wgpu::Features::TIMESTAMP_QUERY) .build(), )?;