mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
fixed large memory consumption
Reducing MAX_QUADS to 1,000 reduced memory consumption to 43MB
This commit is contained in:
parent
6c0b6751ea
commit
71ad4b4ab7
2 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,7 @@ const QUAD_VERTS: [Vertex; 4] = [
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
pub const MAX_QUADS: usize = 100_000;
|
pub const MAX_QUADS: usize = 1_000;
|
||||||
|
|
||||||
pub fn create_rect_buffers(
|
pub fn create_rect_buffers(
|
||||||
gpu_device: &wgpu::Device,
|
gpu_device: &wgpu::Device,
|
||||||
|
|
|
@ -178,7 +178,7 @@ fn run_event_loop(title: &str, root: RocElem) -> Result<(), Box<dyn Error>> {
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
todo!("TODO handle keyboard input");
|
// TODO todo!("TODO handle keyboard input");
|
||||||
}
|
}
|
||||||
//Modifiers Changed
|
//Modifiers Changed
|
||||||
Event::WindowEvent {
|
Event::WindowEvent {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue