'Dixel' scrolling... Ghosts 'n' Goblins

General software. From trouble with the Banyan Tree to OCP Art Studio, post any general software chat here. Could include game challenges...
User avatar
Einar Saukas
Bugaboo
Posts: 3145
Joined: Wed Nov 15, 2017 2:48 pm

Re: 'Dixel' scrolling... Ghosts 'n' Goblins

Post by Einar Saukas »

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).
User avatar
Joefish
Rick Dangerous
Posts: 2059
Joined: Tue Nov 14, 2017 10:26 am

Re: 'Dixel' scrolling... Ghosts 'n' Goblins

Post by Joefish »

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...
Nienn Heskil
Microbot
Posts: 134
Joined: Tue Jun 09, 2020 6:14 am
Contact:

Re: 'Dixel' scrolling... Ghosts 'n' Goblins

Post by Nienn Heskil »

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.
catmeows
Manic Miner
Posts: 718
Joined: Tue May 28, 2019 12:02 pm
Location: Prague

Re: 'Dixel' scrolling... Ghosts 'n' Goblins

Post by catmeows »

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.
I don't see how this could work. Could you share your code ?
Proud owner of Didaktik M
Nienn Heskil
Microbot
Posts: 134
Joined: Tue Jun 09, 2020 6:14 am
Contact:

Re: 'Dixel' scrolling... Ghosts 'n' Goblins

Post by Nienn Heskil »

catmeows wrote: Tue Oct 06, 2020 6:05 pm
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.
I don't see how this could work. Could you share your code ?
Here
User avatar
Einar Saukas
Bugaboo
Posts: 3145
Joined: Wed Nov 15, 2017 2:48 pm

Re: 'Dixel' scrolling... Ghosts 'n' Goblins

Post by Einar Saukas »

Nice :)
catmeows
Manic Miner
Posts: 718
Joined: Tue May 28, 2019 12:02 pm
Location: Prague

Re: 'Dixel' scrolling... Ghosts 'n' Goblins

Post by catmeows »

Nienn Heskil wrote: Tue Oct 06, 2020 6:17 pm
catmeows wrote: Tue Oct 06, 2020 6:05 pm I don't see how this could work. Could you share your code ?
Here
Thanks. That bidirectional shift of A to store 2 bits was the missing part.
Proud owner of Didaktik M
User avatar
arjun
Microbot
Posts: 151
Joined: Sat Sep 19, 2020 7:34 am
Location: India
Contact:

Re: 'Dixel' scrolling... Ghosts 'n' Goblins

Post by arjun »

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).
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?

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!
User avatar
Einar Saukas
Bugaboo
Posts: 3145
Joined: Wed Nov 15, 2017 2:48 pm

Re: 'Dixel' scrolling... Ghosts 'n' Goblins

Post by Einar Saukas »

arjun wrote: Wed Oct 07, 2020 9:01 amEinar I'm concerned. This is the second post I've seen from you with the above words. Are you okay?
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!
Post Reply