mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-18 22:53:16 +00:00
Allow compiler to generate better code. ~1.8ns/pixel.
This commit is contained in:
parent
b24a004d1f
commit
54a7e4fc14
1 changed files with 6 additions and 0 deletions
|
@ -130,6 +130,12 @@ impl ParticleWorldState {
|
|||
end_y: i32,
|
||||
pixel_runs: *mut NoitaPixelRun,
|
||||
) -> usize {
|
||||
// Allow compiler to generate better code.
|
||||
assert!(start_x % 128 == 0);
|
||||
assert!(start_y % 128 == 0);
|
||||
assert!((end_x - start_x) <= 128);
|
||||
assert!((end_y - start_y) <= 128);
|
||||
|
||||
for y in start_y..end_y {
|
||||
for x in start_x..end_x {
|
||||
let mut raw_pixel = RawPixel {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue