Twilighte we miss you.

Oki, so the scroll step is two lines because AIC uses one paper/color combination for the even lines and another for the odd ones.
The problem is that the scroll is far from 50fps, so there's a large probability that copying the line and attribute will not happen atomically, so you can get bright flashes caused by having some of the graphics displayed with the wrong set of colors.NekoNoNiaow wrote: ↑Sat Apr 20, 2019 3:25 amOki, so the scroll step is two lines because AIC uses one paper/color combination for the even lines and another for the odd ones.
This said, if one is willing to also copy the color attributes at the left side of the play field, then it becomes possible to only scroll by one line.
Damn, you are right, I completely forgot about the absence of vsync.
Yes, which is why I suggested to copy the attributes, not just the pixel data. This way the colors are preserved.
I seem to be interpreting what DBug says differently than you do. To me (I may be wrong obviously), it seems that he is saying that since the copy cannot be aligned to vsync, there are bound to be lines where the attributes and pixel data will not be in sync, which will lead to color artifact.
The O-Type video seems to show that the copy is already not VSYNC aligned: there is ample tearing as the screen scrolls along so copy time is not the issue.
I understood. What I mean is that the player's ships (enemies too?) also use AIC, so if they are still at, say, the bottom of the play area and you scroll attributes one row up, their colors will change.NekoNoNiaow wrote: ↑Mon Apr 22, 2019 9:10 pmYes, which is why I suggested to copy the attributes, not just the pixel data. This way the colors are preserved.
Hum... ok, I now understand what you mean. Nothing better than a good example! Thanks.
Do not be sorry!Chema wrote: ↑Tue Apr 23, 2019 1:12 pmAbout the vsync thing, I am sorry if I misunderstood. In any case, it is possible to get an interrupt in sync with the vertical retrace, as was proposed here viewtopic.php?f=8&t=78&hilit=vsync&start=15#p15173