Where if anywhere can I find info oon how to optimize a bit of code?
OpenGL code? Learn to use google. http://www.sgi.com/software/opengl/advanced97/notes/node205.html
Otherwise pretty off topic. But here you go: http://developer.intel.com/intelpress/sum_soc.htm
Optimize your algorithms first. It should give far better results than blindly trying to write your inner loop in asm.
Was able to optimize the code without redoing the algorithms I just added a filter. GL_NEAREST and it cleaned up nicely.
Oh, you had a specific problem and asked “how to optimize a bit of code”.
Would have been easier to answer if you had presented the offending code.