Draw images efficiently
Hi, I’m using an image as a background for an output-pane, and in order to fill the entire pane, I’ve been using a naïve tile approach: (loop for nx from 0 below (ceiling width image-width) do (loop for ny from 0 below (ceiling height image-height) do (gp:draw-image port image (+ x (* nx image-width)) (+ y (* ny image-height)))) However, this is pretty slow. I tried experimenting with various image sizes, but drawing a bigger image fewer times seems to take about the same time as drawing a smaller image more times. That suggests the cost of drawing images is (to some extent) proportional to the amount of data being drawn. Is there any way to optimize image drawing in CAPI? Erik _______________________________________________ Lisp Hug - the mailing list for LispWorks users lisp-hug@lispworks.com http://www.lispworks.com/support/lisp-hug.html