Differences From Artifact [504811d94d]:
- File
src/worldocull.m
— part of check-in
[6b85eefc85]
at
2025-03-23 02:47:40
on branch trunk
— Remove loop[ijkl]
They confused clang-format a lot. (user: js, size: 4556) [annotate] [blame] [check-ins using]
To Artifact [1dcc5bb2a7]:
- File src/worldocull.m — part of check-in [51fb59fc93] at 2025-03-23 17:45:28 on branch trunk — Remove fast_f2nat (user: js, size: 4454) [annotate] [blame] [check-ins using]
︙ | |||
31 32 33 34 35 36 37 | 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | + - - + + - + - - - - | float apitch = (float)fabs(player1.pitch); float af = getvar(@"fov") / 2 + apitch / 1.5f + 3; float byaw = (player1.yaw - 90 + af) / 360 * PI2; float syaw = (player1.yaw - 90 - af) / 360 * PI2; for (int i = 0; i < NUMRAYS; i++) { float angle = i * PI2 / NUMRAYS; // try to avoid tracing ray if outside of frustrum |
︙ | |||
62 63 64 65 66 67 68 | 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | - + | float sx = vx; float sy = vy; for (;;) { sx += dx; sy += dy; // 90% of time spend in this function is on this // line |
︙ | |||
179 180 181 182 183 184 185 | 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 | - - - + + + | l = ma(cx - vx, cy + csize - vy); } // E } else { h = ca(cx + csize - vx, cy - vy); l = ca(cx - vx, cy + csize - vy); } // H } |