summaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs
index f321a9b..e9f9ca4 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -66,6 +66,10 @@ pub struct RenderWindowConfig<'a> {
/// If true, Fifo mode is used to present frames. If false, then Mailbox or
/// Immediate will be used if available. Otherwise, Fifo will be used.
pub vsync: bool,
+ /// The initial capacity of the instance buffer. The size will increase if
+ /// it's not large enough. Increasing this value may improve performance
+ /// towards the beginning, if a lot of instances are being created.
+ pub instance_capacity: usize
}
impl<'a> Default for RenderWindowConfig<'a> {
@@ -77,6 +81,7 @@ impl<'a> Default for RenderWindowConfig<'a> {
title: "Alligator Game".into(),
low_power: true,
vsync: true,
+ instance_capacity: 0,
}
}
}