I’ve started to experiment with Glide on a Cobra 1 with a 7-inch display. My application has many windows. Following the examples provided, I created/loaded all the windows and saved them in static properties of the Program class. After a while I ended up with out-of-memory errors. I examined the Glide code and realized that when a window is created an LCD-sized bitmap object is also created and stored along with the window in memory.
Digging a little deeper, I also realized that when a window becomes the current window (by setting the Glide.MainWindow property) the window’s bitmap is completely re-drawn and is copied to the LCD.
It seems to me that as long as all windows occupy the full screen there only needs to be one bitmap for the LCD, and all windows should draw their contents onto this single bitmap.
Am I missing something?