Dead Hackers Society
Other BBSes »
 
 
Demoscene  Coding  CT60  Buy/sell

Atari coding BBS
 
Blit OP Register
Posted by: Bod/STAX Aug,18.2013-22:43 

In my game the sprites that use the blitter are stored as a one plane mask and a four plane sprite. I set the blitter OP register to %0001 (source and target) to plot all masks in one go and then set it to %0111 (source or target) and then plot all sprite gfx in one go.

For all the sprites that requited >1 hit to be destroyed (such as the very large baddies) I had a seperate set of sprites that were exactly the same but were stored as four planes filled in to one colour.

Today I decided to save a bit of memory and maybe speed things up by letting the blitter do this. When a baddie with a >1 hit value is hit i turn off the gfx drawing routine and only plot the mask to the four planes but set the blit op register to %1101 (not source or target) which to me would do the same job but the sprites go flicker and somethimes a crash occours. Does the source get affected? to me what the blitter does here is take the each 16 pixels of the mask not it and or it to the target without affecting the mask.

Am I missing something here?

Why would all of a sudden flicker occour?

Thanks.







[All messages in this thread]    [Start new thread]

Topic Posted by  Date 
Blit OP Register Bod/STAX Aug,18.2013-22:43
  Re: Blit OP Register Bod/STAX Aug,19.2013-07:12
    Re: Blit OP Register Bod/STAX Aug,19.2013-07:26
      Re: Blit OP Register Bod/STAX Aug,19.2013-09:01
        Re: Blit OP Register Viking Aug,20.2013-23:45
          Re: Blit OP Register Bod/STAX Aug,22.2013-00:31


Reply to this message
Name:
Topic:
Anti-troll code:

Message:

What's the anti-troll code?
That's your personal code to be able to add comments and messages on the dhs.nu site.
Don't have a code or forgot it? Fix it here.
© 1994-2024 Dead Hackers Society Contact: Anders Eriksson