summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMicha White <botahamec@outlook.com>2022-10-20 09:12:52 -0400
committerMicha White <botahamec@outlook.com>2022-10-20 09:12:52 -0400
commit94e148af2349ad15df127ee8e720dbbf24bc7587 (patch)
tree83f1226f25237ec1e882109ca317e87ffd7a7e4e /examples
parent86686727231a7d7b3650141fa3ad5c2674547148 (diff)
Optimized the benchmark compiler flags
Diffstat (limited to 'examples')
-rw-r--r--examples/bmp.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/bmp.rs b/examples/bmp.rs
index 6c8774c..af71863 100644
--- a/examples/bmp.rs
+++ b/examples/bmp.rs
@@ -4,6 +4,7 @@ use std::num::NonZeroU32;
use alligator_render::{ImageFormat, Instance, RenderWindowConfig, Renderer};
+#[profiling::function]
fn update(renderer: &mut Renderer) {
let camera = renderer.camera_mut();
camera.set_rotation(camera.rotation() + 0.01);