summaryrefslogtreecommitdiff
path: root/alligator_render/src
diff options
context:
space:
mode:
Diffstat (limited to 'alligator_render/src')
-rw-r--r--alligator_render/src/config.rs4
-rw-r--r--alligator_render/src/renderer.rs4
2 files changed, 7 insertions, 1 deletions
diff --git a/alligator_render/src/config.rs b/alligator_render/src/config.rs
index 952e885..e342657 100644
--- a/alligator_render/src/config.rs
+++ b/alligator_render/src/config.rs
@@ -67,7 +67,9 @@ pub struct RenderWindowConfig<'a> {
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.
+ /// towards the beginning, if a lot of instances are being created. For
+ /// compatibility with older devices, it's recommended to keep this number
+ /// below 150 thousand.
pub instance_capacity: usize,
}
diff --git a/alligator_render/src/renderer.rs b/alligator_render/src/renderer.rs
index fdd8c34..e6a3d22 100644
--- a/alligator_render/src/renderer.rs
+++ b/alligator_render/src/renderer.rs
@@ -178,6 +178,10 @@ impl Renderer {
.request_device(
&wgpu::DeviceDescriptor {
features: wgpu::Features::empty(),
+ limits: wgpu::Limits {
+ max_buffer_size: adapter.limits().max_buffer_size,
+ ..Default::default()
+ },
..Default::default()
},
None,