Not really.
Dixel scrolling is not a great idea. If you have enough free memory for the unrolled loop implementation, then running a single pixel scroll twice is actually faster than a single dixel scroll without screen memory contention (although dixel scrolling performs better during memory contention while running the raster scan, if my calculations are correct... I don't have an emulator right now to validate it).
'Dixel' scrolling... Ghosts 'n' Goblins
- Einar Saukas
- Bugaboo
- Posts: 3147
- Joined: Wed Nov 15, 2017 2:48 pm
Re: 'Dixel' scrolling... Ghosts 'n' Goblins
In this case, isn't it more efficient to fetch a byte from memory, scroll it, then write it back, rather than do two in-place rotates?
Though it's only quick if you're shifting in A, which means you can't do EX AF,AF'... So maybe not...
Though it's only quick if you're shifting in A, which means you can't do EX AF,AF'... So maybe not...
-
- Microbot
- Posts: 134
- Joined: Tue Jun 09, 2020 6:14 am
- Contact:
Re: 'Dixel' scrolling... Ghosts 'n' Goblins
For 2px scrolling, try POP: RL: RL: PUSH. I have one such routine that scrolls some 30x192 area, the resulting speed is about 31T/byte (uncontended), which is close to RL (HL) x2 with nothing in between.
Re: 'Dixel' scrolling... Ghosts 'n' Goblins
I don't see how this could work. Could you share your code ?Nienn Heskil wrote: ↑Tue Oct 06, 2020 4:53 pm For 2px scrolling, try POP: RL: RL: PUSH. I have one such routine that scrolls some 30x192 area, the resulting speed is about 31T/byte (uncontended), which is close to RL (HL) x2 with nothing in between.
Proud owner of Didaktik M
-
- Microbot
- Posts: 134
- Joined: Tue Jun 09, 2020 6:14 am
- Contact:
Re: 'Dixel' scrolling... Ghosts 'n' Goblins
Herecatmeows wrote: ↑Tue Oct 06, 2020 6:05 pmI don't see how this could work. Could you share your code ?Nienn Heskil wrote: ↑Tue Oct 06, 2020 4:53 pm For 2px scrolling, try POP: RL: RL: PUSH. I have one such routine that scrolls some 30x192 area, the resulting speed is about 31T/byte (uncontended), which is close to RL (HL) x2 with nothing in between.
- Einar Saukas
- Bugaboo
- Posts: 3147
- Joined: Wed Nov 15, 2017 2:48 pm
Re: 'Dixel' scrolling... Ghosts 'n' Goblins
Thanks. That bidirectional shift of A to store 2 bits was the missing part.
Proud owner of Didaktik M
Re: 'Dixel' scrolling... Ghosts 'n' Goblins
Einar I'm concerned. This is the second post I've seen from you with the above words. Are you okay? Are you being held against your will, somewhere? This is your secret code for "Help. Rescue me!", right?Einar Saukas wrote: ↑Tue Oct 06, 2020 3:51 pm if my calculations are correct... I don't have an emulator right now to validate it).
Please post again with the words "emulation is for n00bs" to confirm. We will immediately create a ticket for this rescue task. You can track the progress being made towards your rescue in the ticket. Please take the time to rate this support on a scale of 1 to 10. Thank you!
- Einar Saukas
- Bugaboo
- Posts: 3147
- Joined: Wed Nov 15, 2017 2:48 pm
Re: 'Dixel' scrolling... Ghosts 'n' Goblins
I'm not used to more than a few hours without access to an emulator... but now I'm back home so everything's fine!