2-tile vertical scroll

SGDK only sub forum

Moderator: Stef

Post Reply
bioloid
Very interested
Posts: 177
Joined: Fri May 18, 2012 8:22 pm

2-tile vertical scroll

Post by bioloid » Sun Aug 17, 2014 12:02 pm

Hello,

I'm trying to use the 2-tile vertical scroll mode, is there a fast way to write those ? I want to set different values per line in the HIntCallback.

Alex
Last edited by bioloid on Sun Aug 17, 2014 12:19 pm, edited 2 times in total.

bioloid
Very interested
Posts: 177
Joined: Fri May 18, 2012 8:22 pm

Post by bioloid » Sun Aug 17, 2014 12:15 pm

Oh, and my callback is this now :

Code: Select all

    void hblank()
    {
        *pl = addr;
    
        int i = width;
        while(i--) *pw = *scanline++;
    }
Unfortunately it's too slow (works only when width = 2).
(sent Steph a PM as well).

Stef
Very interested
Posts: 3131
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Post by Stef » Sun Aug 17, 2014 7:07 pm

As i replied you by email, you definitely can't update the whole VSRAM during hblank, far from it actually ! maybe 5 or 6 entries at max with asm optimized code.

bioloid
Very interested
Posts: 177
Joined: Fri May 18, 2012 8:22 pm

Post by bioloid » Sun Aug 17, 2014 7:13 pm

Got it, thanks again!

Post Reply