Hi, EW Team:
I have designed a component, which has inside a WarpImage, which plays animation and whose shape can be scaled and transformed. I have integrated four such components into one panel and let all the four animation run together. The time needed for one screen update is about 20ms. After I reshaped one of the four WarpImage, the time increased to 40ms which in turn delays reaction of other GUI operation. I'd like to know how to optimize the runtime performance of such warped animating components?
My configuration for the surface cache is as below:
#define EW_LAZY_LOAD_BITMAPS 1
#define EW_LAZY_LOAD_BITMAPS_IF_ANIMATED_ONLY 0
#define EW_DISCARD_BITMAPS 0
#define EW_DISCARD_BITMAPS_IF_ANIMATED_ONLY 0
#define EW_DISCARD_BITMAPS_IF_NOT_USED_IN_CURRENT_UPDATE 0
#define EW_DISCARD_BITMAPS_IF_NOT_USED_IN_RECENT_UPDATES 1
#define EW_CACHE_OFFSCREEN_SURFACES 1
And, Is it possible to get any optimization by enabling the buffered property of the component?
By the way, I have 28MB RAM used as EW heap. and the memory consumed by resource is measured nearly 8MB. So it should be possible to get the trade-off from space to time.
Thank you.
Best regards.
Stephen