diff options
| author | Micha White <botahamec@outlook.com> | 2022-10-11 21:42:10 -0400 |
|---|---|---|
| committer | Micha White <botahamec@outlook.com> | 2022-10-11 21:42:10 -0400 |
| commit | 76ed4fe2d3f96c1c25905875a0d5dacc5ff7ed8a (patch) | |
| tree | b327a5decfc7a7706c8911f050545556135f1aa5 /examples/bmp.rs | |
| parent | 19811a235d8b6791e4a70a89c0cd21a928de6e95 (diff) | |
Big performance improvement
Diffstat (limited to 'examples/bmp.rs')
| -rw-r--r-- | examples/bmp.rs | 4 |
1 files changed, 3 insertions, 1 deletions
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() |
