Originally posted by Olaf Kummer:
That's going to earn you a few percent, but nothing impressive.
Can I change the polling rate on the listeners?
Originally posted by John Smith:
I would try using
setRGB(int startX, int startY, int w, int h, int rgbArray, int offset, int scansize)
setRGB(int x, int y, int rgb)
That is, instead of setting pixels one at a time, calculate them all in advance and display the entire image in a single method call. It must be faster.
Originally posted by Carl Pettersson:
Ilja: Is there any faster image class than BufferedImage?
Also, how much performance gain will I see with moving variable declarations outside the iteration methods?
Looked a bit on the iteration, why is the first of these blocks approx 20% faster?
Originally posted by Ilja Preuss:
Moving declarations of local variables inside a method typically doesn't have any effect on the byte code. If you meant something else, I'd advise to try it...
Originally posted by Ernest Friedman-Hill:
Declaring a variable takes essentially zero work -- the first five, especially, are free.