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)
instead of
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.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
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?
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
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.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
There is no beard big enough to make me comfortable enough with my masculinity to wear pink. Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|