View Full Version : Windows size in dynamic memory
zhamilton1
01-28-2003, 12:12 PM
Does anyone know how much a window takes in dynamic memory and is there a maximum of windows?
Note that I am talking about off-screen windows and not forms or on-screen windows.
nyrath
01-28-2003, 04:00 PM
I'm not sure.
From Sony Developer's Spotlight (http://www.us.sonypdadev.com/spotlight/index.html)
One "speed bump" that some game developers will undoubtedly run in to is allocating frame buffers. Our first attempt at high-resolution was running in a compatibility mode, where each frame was drawn off screen and then copied to the display. On a 160x160 pixel, 8 bit color device, this is as easy as allocating a 25k buffer. With a 320x320 screen, we clearly need a 100k buffer. Allocating more than 64k on the Palm isn't very easy, and a frame buffer has to be one contiguous chunk of RAM. One solution to this problem is to use FtrPtrNew to allocate a chunk of RAM larger than 64k. We have no idea why, but of all of the memory management functions, this one relaxes the 64k limit in OS 3.5 and above.
vBulletin v3.0.3, Copyright ©2000-2012, Jelsoft Enterprises Ltd.