feat: half the history
this should probably be dynamic (based on screen space).... somehow....
This commit is contained in:
parent
96a972f9f0
commit
fa0284f165
1 changed files with 1 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ impl Graph {
|
|||
|
||||
pub fn update(&mut self, value: f32) {
|
||||
self.timeline.push_back(value);
|
||||
if self.timeline.len() > 1000 {
|
||||
if self.timeline.len() > 500 {
|
||||
self.timeline.pop_front();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue