Quote:
Originally Posted by meynaf
Do you have moving objects everywhere on the screen ?
If you have large areas that don't change often, you could restore only the part that encompasses all moving objects (finding this out is just coordinate comparisons to get min/max). It would already be faster than restoring the whole screen.
|
I was previously just working out what the overall rectangle size of each animation frame was and just copying/restoring that for each object in one go, but they were pretty big, and trying to keep a steady origin point with changing frame sizes was a nightmare.
I think I may need to work out how to have a buffer(s) which can change size on the fly, but I don't know how to do that yet.
I think McGeezer's tile-restore method sound like it would work. I saw something similar on the Amstrad a few years ago, but that was just for static screen, so I may need to think about this.
I wish the Amiga (or at least the ECS) had a separate objects layer to blit to, but I guess this is all part of the challenge.