Search found 3 matches

by tiagosr
Thu Jul 18, 2013 1:42 am
Forum: Video Display Processor
Topic: Palette color switching in HBlank
Replies: 12
Views: 5583

Thanks, Stef, that actually makes more sense than trying to fit just one or two accesses, which was what I was getting. But this way if one is to do stuff each line (like change some colours and vscroll for plane A) I guess there's no use triggering a H-INT each line anymore - I should keep on spinn...
by tiagosr
Wed Jul 17, 2013 3:33 pm
Forum: Video Display Processor
Topic: Palette color switching in HBlank
Replies: 12
Views: 5583

One other thing I did (along with ensuring no other part of the code did write to the VDP during active lines) was setting up the CRAM address in the VDP so that the palette write is actually the first thing the routine does - this makes the write show up in time for the only access slot available b...
by tiagosr
Wed Jul 17, 2013 12:42 am
Forum: Video Display Processor
Topic: Palette color switching in HBlank
Replies: 12
Views: 5583

Hi! I'm also new here, and am doing a game with raster effects on H-INT. It might be that your H-INT routine is taking too long to actually write something - as VDP_setPaletteColor(...) is a subroutine call, it might be pushing all registers to the stack before actually changing the palette. I sugge...