View Single Post
Old 26 June 2021, 12:11   #5
Brick Nash
Prototron
 
Brick Nash's Avatar
 
Join Date: Mar 2015
Location: Glasgow, Scotland
Posts: 421
Quote:
Originally Posted by meynaf View Post
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.
Brick Nash is offline  
 
Page generated in 0.04307 seconds with 11 queries