Quote:
Originally Posted by roondar
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
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
?