Dead Hackers Society
Other BBSes »
 
 

68k Inside

Sommarhack 2024

Silly Venture 2024 SE
Demoscene  Coding  CT60  Buy/sell

Atari coding BBS
 
Clear 1 bpl fast?
Posted by: Per Almered (XiA) Sep,12.2009-13:05 

Hi, me again with another presumably basic question... *blush*

What IS the fastest way to clear a bitplane on an STE?

What I'm using now is along the lines of:

move.l screenaddress,a0
move.l #0,d0
move.l #200-1,d1
.loop
rept 40
move.w d0,(a0)
add.l #8,a0
endr
dbra d1,.loop

...which obviously could be made a handful cycles faster be unravelling the dbra loop, but would eat a LOT more memory, probably not worth it.

Is there a faster way? Can the blitter do this faster?

If I remember correctly, in SubStation, the programmers decided not to clear the screen using the blitter (that was 4 bitplanes tho, of course), because the speed gain was so small, and there was some other disadvantage (probably timer related) to using the blitter.

Can anyone shed some light on this?


Thanks in advance,

Per.







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

Topic Posted by  Date 
Clear 1 bpl fast? Per Almered (XiA) Sep,12.2009-13:05
  Re: Clear 1 bpl fast? frank_c_b Sep,12.2009-14:31
  Re: Clear 1 bpl fast? RA/pdx Sep,12.2009-15:38
  Re: Clear 1 bpl fast? evil Sep,12.2009-18:07
    Re: Clear 1 bpl fast? Per Almered (XiA) Sep,12.2009-21:53
      Re: Clear 1 bpl fast? Per Almered (XiA) Sep,12.2009-22:13
        Re: Clear 1 bpl fast? Frank_c_b Sep,12.2009-22:37
          Re: Clear 1 bpl fast? Per Almered (XiA) Sep,12.2009-22:43
          Re: Clear 1 bpl fast? frank_c_b Sep,12.2009-22:47
            Re: Clear 1 bpl fast? Per Almered (XiA) Sep,12.2009-22:56
              Re: Clear 1 bpl fast? frank_c_b Sep,12.2009-23:06
                Re: Clear 1 bpl fast? Frank_c_b Sep,12.2009-23:12
      Re: Clear 1 bpl fast? ggn Sep,12.2009-23:02
        Re: Clear 1 bpl fast? Bod Sep,13.2009-20:23
        Re: Clear 1 bpl fast? Per Almered (XiA) Sep,14.2009-21:11


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