Yes, this my idea too: to recalculate the first pixel and see the feasibility. Precalculated method you proposed Chb, is interesting too.
In fact, when I started the thread, I forgot that in HAM mode, a whole line can depend of the first pixel of this line. I was in the idea it was only true for 8 pixels or so (HAM is far away in my memory). And so the sprite trick is useless.
So I will maintain a precalculated set of data representing the x+1 column of pixels which approximated the real ones by using the palette ones and apply it to the image, after the image was scrolled by one pixel to the left.
Do someone know what algorithm I can use to take the most appropriated pixel from a 16 colours palette when coming from a potential 4096 colours pixel?
Last edited by TEG; 23 February 2019 at 09:35.
|