Enable GPU timestamp queries

This commit is contained in:
Jarrod Doyle 2024-05-18 17:35:03 +01:00
parent 56e756d818
commit 443b18729e
Signed by: Jayrude
GPG Key ID: 38B57B16E7C0ADF7
1 changed files with 5 additions and 1 deletions

View File

@ -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(),
)?;