About Speed Problem
Dear Friends,
I have developed a part of a game, But i have found that runs very slow. Can anyone introduce some tips to make the game faster. Addtionally, I am worrying if the cause of that is because all the images insides the game are created by .PNG. Is that we should draw graphics by J2ME instead of getting graphics from file?
Thanks
Lawrence
>> Is that we should draw graphics by J2ME instead of getting graphics from file?
If you're talking about using drawImage() as opposed to drawing primitives (lines, rects, arcs), then for anything more than a few simple rects, you won't gain any performance from that. And you're graphics will look a lot crappier.
There is [url=http://www.microjava.com/articles/techtalk/optimization]an article about optimizations[/url] in MicroDevNet, you might want to take a look at.
Other than that it's very hard to help since you didn't say anything about you're game, except that it is a game.
shmoove