Hi, Daniel Egger <de@xxxxxxxxxx> writes: > There seems to be more room for obvious optimisations in the > loops. Also I would recommend splitting the two cases into > two separate functions to make the code easier to read, and > remove more conditionals. All done already. I also got a nice improvement by rewriting the dithering code. Sven