iMuYa said:40x20, that means u use 800 sprite objects to come out the background. How's the memory consumption? Consumed lots of memory?
ThePentiumGuy, can you tell the reason why using Paint - Invalidate is better than using WHILE LOOP?
Any recommendation from you guys, how to compact the use of memory. .NET used up too much memory I think.
Thanks.
The trick is to DELETE all of those objects once they are created and just "think" of the map as one object. My map object is a class that holds all of the data for the map and all of the map can be drawn from this class alone.
So there is a little less consumption here if you aren't storing all of that data somewhere. But, either way works too.