Skip animating figures outside of the frustum

This commit is contained in:
Joshua Barretto 2023-10-17 14:02:17 +01:00
parent c07d7a212b
commit bf92d0287b

View File

@ -993,6 +993,10 @@ impl FigureMgr {
(true, 0)
};
if !in_frustum {
continue;
}
// Change in health as color!
let col = health
.map(|h| {