draw_textn Improvement
Introduction
This patch should give a small speed boost to the function draw_textn.
Description of Patch
Since draw_textn is a heavily called function, even minor changes can have a big impact over time. This patch merely creates a temporary variable in place of constantly recalculating the same equation multiple times in a loop.
Installation of Patch
cd <motion dir>
gunzip draw_textn-0.01.patch.gz
patch -p1 < draw_textn-0.01.patch
make clean
make
make install (as root if needed)
Change History of Patch
0.01 Initial Version
Andrew great ! I think that the patch could be improved a bit more to avoid some CPU cycles

The way i did is adding a new temp variable that include the x value in the for over x.
for (x=0; x<6; x++) {
int tempvar_x = tempvar +x;
...
image[tempvar_x+1+(y+starty)*width]=0;
...
--
AngelCarpintero - 26 May 2005
This patch is now in my sources for 3.2.2_snap1
--
KennethLavrsen - 03 Jun 2005