View Single Post
Old 16 January 2021, 14:21   #130
Old_Bob
BiO-sanitation Battalion
 
Old_Bob's Avatar
 
Join Date: Jun 2017
Location: Scotland
Posts: 151
Quote:
Originally Posted by DanScott View Post
The first thing you do is think "how do we flip the frames, so we only have to store half"

You could use the CPU... with a 64k word flip buffer

But how can we optimise the flip?

Well.. the solution is to take each frame, and only flip one half of it. So whichever way the character wants to face, you either flip the top half or the bottom half. This reduces your flip CPU cost to around 50%
I'd also like to say that this is a beautifully sneaky solution. I simply *have* to have a little fiddle around with this...

Quote:
Originally Posted by DanScott View Post
Of course, there is also a way to flip image data using the blitter in several passes. Again, we'd only need to flip the half of the sprite that needs flipping.
At a guess, I think using the CPU would be the best option of the two? Given that the blitter could be drawing one fighter while the 020 chews on the flip for the other?

B
Old_Bob is offline  
 
Page generated in 0.09692 seconds with 11 queries