I give up on retained for now lmao

This commit is contained in:
2025-11-14 14:39:08 -05:00
parent 218b3f14ed
commit b4947db850
5 changed files with 34 additions and 9 deletions

View File

@@ -134,11 +134,14 @@ impl Ui {
}
fn redraw_updates(&mut self) {
let mut ctx = PainterCtx::new(&mut self.data);
for id in self.updates.drain(..) {
ctx.redraw(id);
if self.updates.drain(..).next().is_some() {
self.redraw_all();
}
self.free();
// let mut ctx = PainterCtx::new(&mut self.data);
// for id in self.updates.drain(..) {
// ctx.redraw(id);
// }
// self.free();
}
/// free any resources that don't have references anymore