Is there any magical compiler pre-processor commands that would make it easier for me to keep up with unrolled loop changes?
For instance, it would be really cool if I could do something like:
#REPEAT=8
*(display++) = *(source + (u += du) + (v += dv)<<5);
#ENDREPEAT
Instead of having to change all 8 lines of code.
Even better if I could increment a constant value in the process...
BTW, I know for a fact that this helped my FPS with the only downside of having to keep the size a multiple of 8...
For instance, it would be really cool if I could do something like:
#REPEAT=8
*(display++) = *(source + (u += du) + (v += dv)<<5);
#ENDREPEAT
Instead of having to change all 8 lines of code.
Even better if I could increment a constant value in the process...
BTW, I know for a fact that this helped my FPS with the only downside of having to keep the size a multiple of 8...