Question on Memory Issues in Android -
will there memory issue if use lot of frame frame animation in android
that depends entirely upon how implement it, , details such how large frames , kind of color-depth choose use. in general, however, should able come rendering algorithm doesn't hold references more handful of frames @ 1 point in time.
ideally should need reference previous frame , working buffer current frame. assuming that's case, , assuming you're using 8-bit rgba pixel encoding, can work out how approximately memory animation consume when running. it's:
frame.width * frame.height * 4 * 2
bytes
and can make reasonable estimate of whether or not device can meet memory requirements. general rule, long frames not larger device resolution should okay.
Comments
Post a Comment