From 76ed4fe2d3f96c1c25905875a0d5dacc5ff7ed8a Mon Sep 17 00:00:00 2001 From: Micha White Date: Tue, 11 Oct 2022 21:42:10 -0400 Subject: Big performance improvement --- examples/bmp.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'examples/bmp.rs') diff --git a/examples/bmp.rs b/examples/bmp.rs index 566e098..98561ba 100644 --- a/examples/bmp.rs +++ b/examples/bmp.rs @@ -9,7 +9,7 @@ fn main() { // configure the render window let config = RenderWindowConfig { title: "Bumper Sticker", - instance_capacity: 1, + instance_capacity: 2, default_width: NonZeroU32::new(1280).unwrap(), default_height: NonZeroU32::new(720).unwrap(), //mode: alligator_render::config::WindowMode::BorderlessFullscreen, @@ -32,6 +32,7 @@ fn main() { renderer.push_instance(Instance { position: [-0.5, 0.0], + size: [0.75; 2], texture_size: [width, height], texture_coordinates: [x, y], ..Default::default() @@ -39,6 +40,7 @@ fn main() { renderer.push_instance(Instance { position: [0.5, 0.0], + size: [0.75; 2], texture_size: [width, height], texture_coordinates: [x, y], ..Default::default() -- cgit v1.2.3