View Single Post
Old 11 January 2022, 18:33   #39
TCH
Newbie Amiga programmer
 
TCH's Avatar
 
Join Date: Jun 2012
Location: Front of my A500+
Age: 38
Posts: 372
Quote:
Originally Posted by roondar View Post
Note that there is nothing wrong with the approach you chose, it just wasn't what I had expected. If you want to use two modolu's like that with the CPU blit code, well... Why not?
Because it's slower than your approach.
I don't want to use two modulos, i'm just trying to figure out the fastest approach.
Quote:
Originally Posted by roondar View Post
Yup, that's exactly right for blitting in interleaved mode with the Blitter. Note here that, of course, a CPU based approach can do things slightly differently and only load the mask once per (line*planes) and reuse the already loaded mask for planes beyond the first.
Yep, i know, the CPU can do anything we tell it.

This is a bit off here (hardblit question), but related: i've read, that the Blitter does the masking blit with the following formula:
DEST = (DEST & ~MASK) | (SRC & MASK)

I suspect that the answer is no, but is the double masking mandatory? If i have my source already masked and the mask already inverted, then can it be just simply:
DEST = (DEST & MASK) | SRC
?
TCH is offline  
 
Page generated in 0.04291 seconds with 11 queries