锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产精品亚洲天堂,亚洲人和日本人jizz,亚洲av日韩片在线观看http://www.tkk7.com/ghostdog/category/32038.htmlzh-cnTue, 24 Jun 2008 03:20:21 GMTTue, 24 Jun 2008 03:20:21 GMT60j2me涓殑瀵硅薄寰幆浣跨敤鎯呭喌-todohttp://www.tkk7.com/ghostdog/articles/210260.html楝肩嫍楝肩嫍Tue, 24 Jun 2008 03:12:00 GMThttp://www.tkk7.com/ghostdog/articles/210260.htmlhttp://www.tkk7.com/ghostdog/comments/210260.htmlhttp://www.tkk7.com/ghostdog/articles/210260.html#Feedback0http://www.tkk7.com/ghostdog/comments/commentRss/210260.htmlhttp://www.tkk7.com/ghostdog/services/trackbacks/210260.html
Specific to Nokia's S60 devices, and possibily applicable to other Symbian devices as well: do not create multiple instances of Canvas, as it is a high-overhead object whose native implementation creates RWindow and RBackupWindow instances, which are heavyweight objects, in heap memory. Each new Canvas creates a new "RWindow" and this is know to exhaust memory pretty quickly.
I agree with previous poster that writing in big chunks is better than both saving everything at once or writing multiple small chunks. Perhaps you could also use a new Thread for I/O operations and save-as-you-go pattern. That would avoid the memory spike as well.
Images are problematic in some devices, I would only use PNG instead of JPEG, as they have smaller heap overhead.
I have a presentation about optimization for S60 devices, not exclusively for games, but it can be of some help. Contact me if you need it.