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 | |
| parent | 19811a235d8b6791e4a70a89c0cd21a928de6e95 (diff) | |
Big performance improvement
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/black.rs | 4 | ||||
| -rw-r--r-- | examples/bmp.rs | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/examples/black.rs b/examples/black.rs index fc53ab1..291fafb 100644 --- a/examples/black.rs +++ b/examples/black.rs @@ -7,9 +7,9 @@ fn main() { let start = std::time::Instant::now(); // configure the render window let config = RenderWindowConfig { - vsync: false, + //vsync: false, //mode: alligator_render::config::WindowMode::BorderlessFullscreen, - //title: "Black Screen.exe", + title: "Black Screen.exe", ..Default::default() }; 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() |
