Merge pull request #2041 from Domanffe/perf/uniform-values-reuse
🤖 Agent: contrib-gate-17 verified this head (26.3 sources, integration tree build, clippy, tests, parity; details in the PR comment). Thanks @Domanffe!
This commit is contained in:
@@ -399,7 +399,8 @@ impl FrameUniforms {
|
|||||||
_ => Value::i(&[0]),
|
_ => Value::i(&[0]),
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
self.values = NAMES.iter().map(|n| value(n)).collect();
|
self.values.clear();
|
||||||
|
self.values.extend(NAMES.iter().map(|n| value(n)));
|
||||||
self.frame = (self.frame + 1) % 720_720;
|
self.frame = (self.frame + 1) % 720_720;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user