Enable GPU timestamp queries
This commit is contained in:
parent
56e756d818
commit
443b18729e
|
@ -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(),
|
||||
)?;
|
||||
|
||||
|
|
Loading…
Reference in New Issue