diff options
| author | Mica White <botahamec@outlook.com> | 2026-07-03 16:32:26 -0400 |
|---|---|---|
| committer | Mica White <botahamec@outlook.com> | 2026-07-03 16:32:26 -0400 |
| commit | cbbe1ca7f7b36b03e813fbf7e0147341090762bb (patch) | |
| tree | 4610ef483e1c80bb2c08a4e5ca69e235f8de275c /src/main.rs | |
| parent | e8fe3415e86e18ac97216ada94002d0a03ee3c8a (diff) | |
Fix performance
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 1a62ca2..baea403 100644 --- a/src/main.rs +++ b/src/main.rs @@ -34,6 +34,7 @@ fn render_frame_rate(ctx: &mut ScriptContext, state: &mut Box<[u8]>) { frame_time % 100 / 10, frame_time % 10, ]; + ctx.buffer.cells.clear(); for (x, digit) in digits.into_iter().enumerate() { ctx.buffer.cells.push(Cell { character: char::from_digit(digit as u32, 10).unwrap(), @@ -110,7 +111,6 @@ fn main() { }; scripts.run_scripts(&mut context, &wasm_runner, &mut files); input.reset_next_frame(); - puffin::GlobalProfiler::lock().new_frame(); } }) .unwrap(); |
