diff options
author | 2024-04-07 14:01:05 +0200 | |
---|---|---|
committer | 2024-04-07 14:06:52 +0200 | |
commit | 13289dbd1933e7d7a0b21cffd197813f8f6f7fc0 (patch) | |
tree | 85cbda9aa86c277e623943307c63a33e192ae609 /benches | |
parent | 5e01d767c5ef8a35937675d4e8f02b4c678a5da2 (diff) | |
parent | 1c241d1150d2f7b5d0ae154439325950e5d25f38 (diff) | |
download | iced-13289dbd1933e7d7a0b21cffd197813f8f6f7fc0.tar.gz iced-13289dbd1933e7d7a0b21cffd197813f8f6f7fc0.tar.bz2 iced-13289dbd1933e7d7a0b21cffd197813f8f6f7fc0.zip |
Merge branch 'master' into wgpu/better-architecture
Diffstat (limited to 'benches')
-rw-r--r-- | benches/wgpu.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/benches/wgpu.rs b/benches/wgpu.rs index 8489f61a..780c6bc2 100644 --- a/benches/wgpu.rs +++ b/benches/wgpu.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] use criterion::{criterion_group, criterion_main, Bencher, Criterion}; use iced::alignment; @@ -11,6 +12,7 @@ use iced_wgpu::Renderer; criterion_main!(benches); criterion_group!(benches, wgpu_benchmark); +#[allow(unused_results)] pub fn wgpu_benchmark(c: &mut Criterion) { c.bench_function("wgpu — canvas (light)", |b| benchmark(b, scene(10))); c.bench_function("wgpu — canvas (heavy)", |b| benchmark(b, scene(1_000))); @@ -101,7 +103,7 @@ fn benchmark( ); bencher.iter(|| { - user_interface.draw( + let _ = user_interface.draw( &mut renderer, &Theme::Dark, &core::renderer::Style { @@ -128,7 +130,6 @@ fn benchmark( ); let submission = engine.submit(&queue, encoder); - let _ = device.poll(wgpu::Maintain::WaitForSubmissionIndex(submission)); }); } |