object priority 😝

This commit is contained in:
Alex Janka 2023-02-23 19:15:18 +11:00
parent d90b773c7f
commit eea5245d78

View file

@ -266,6 +266,9 @@ impl Gpu {
},
oam_location: (i - 0xFE00) as u8,
});
if objs.len() >= 10 {
break;
}
}
}
objs.sort_by_key(|o| {
@ -275,7 +278,6 @@ impl Gpu {
v
});
objs.reverse();
objs.truncate(11);
objs
}