mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-24 19:23:00 +00:00
And maybe a nano-optimization. Switching from (~side + 1) to (-side) seems to give glsl a very tiny speed boost, but certainly doesn't hurt. Looking at some assembly output for the three cases, the two hacks seem to generate the same code as each other, but 3 instructions vs 6 for ?:. While ?: is more generically robust, the hacks are tuned for the knowledge side is either 0 or 1. The later xor might alter things, but at least I now know that the hack (either version) is worthwhile. |
||
---|---|---|
.. | ||
audio | ||
client | ||
console | ||
gamecode | ||
gib | ||
image | ||
input | ||
models | ||
net | ||
qw | ||
ruamoko | ||
scene | ||
ui | ||
util | ||
video | ||
Makemodule.am |