I have a question about memory usage.
I draw a bitmap in memory that is tiled from sections of another bitmap stored on the hard disc. The tiled bitmap (tbm) is much larger than the picturebox it is displayed in so that I need to scroll the image.
My current approach is to draw in memory only that section of tbm that can be seen in the picturebox and as the user scrolls the image redraw as necessary. If I make tbm larger than the the picturebox then this will cut down the amount of drawing, eg. I may only have to redraw every 10th scroll event.
My problem is that I dont have any feel for how much memory I can use before I start to affect performance, ie. how large can tbm be? If I have 512 meg RAM and the program is running under Windows 2000 how much spare capacity do I have?
I draw a bitmap in memory that is tiled from sections of another bitmap stored on the hard disc. The tiled bitmap (tbm) is much larger than the picturebox it is displayed in so that I need to scroll the image.
My current approach is to draw in memory only that section of tbm that can be seen in the picturebox and as the user scrolls the image redraw as necessary. If I make tbm larger than the the picturebox then this will cut down the amount of drawing, eg. I may only have to redraw every 10th scroll event.
My problem is that I dont have any feel for how much memory I can use before I start to affect performance, ie. how large can tbm be? If I have 512 meg RAM and the program is running under Windows 2000 how much spare capacity do I have?