I give up on retained for now lmao

This commit is contained in:
iris committed 2025-11-14 14:39:08 -05:00
1 parent 218b3f14ed
commit b4947db850
5 files changed
+34 -9

No files matched your search

+7 -4
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