Am I roughly correct?
#1
So I'm writing a program that generates large bitmaps and I realized I have pushed my little laptop to the edge but it isn't consistent. I realized as I was falling asleep last night I had accidently used a tad bit more memory than I had originally planned.  

Not posting a whole listing as that would be pointless at this stage.

Essentially I'm building a large bitmap by slapping together smaller bit maps. The smallest tiles are 16 x 16 pixels at 32bits.

The source bit maps are under 500K after they are loaded into the program.

Most of the image manipulation happens inside an integer array:  Imap(1000,1000,7) ... That's 14MB + a bit of overhead (correct?).

It all builds an image that is up to   dm&=_newimage(1000*16,1000*16,32) .... that's 1GB+ overhead (correct?).

I'd expect this to be slow and bog down my computer, it doesn't do so consistently. Undoubtedly due to how windows does memory management.  I'm working on speeding it up but really am just asking if my rough memory estimates look correct. Or am I way off?
Reply




Users browsing this thread: 1 Guest(s)