HI,
The repeated use of SetBuffer inside the loop might be problem.
Use the 'buffer' options of ReadPixel/WritePixel to control which buffers are read/written and remove the SetBuffers.
The repeated use of SetBuffer inside the loop might be problem.
Use the 'buffer' options of ReadPixel/WritePixel to control which buffers are read/written and remove the SetBuffers.