|
Atari coding BBS
Re: Mapping question |
Posted by: dml
|
May,09.2014-00:27
|
Yes Ray's sample is good especially if you want arbitrary tiling. He had a few variants for different cases but I've lost track of them.
The sample I provided you is quite fast though (on 030 at least - maybe not so good on 68k) if you can afford the 256x256 fixed size texture.
move.w va,vuoff ; 2
move.b ua,vuoff ; 2
move.b (src,vuoff.l),(dst)++ ; 6 + 4 = 10 (?meh!)
addx.l uvinc,va ; 2
addx.l vuinc,ua ; 2
The src,dst addressing have head/tail overlap so maybe splitting it could save cycles somewhere at the cost of i-cache space...
move.w va,vuoff ; 2
move.b ua,vuoff ; 2
move.b tmp,(dst)++ ; 3:[t]1 \
move.b (src,vuoff.l),tmp ; [h]4:6 / = (6+3)-1 = 8?
addx.l uvinc,va ; 2
addx.l vuinc,ua ; 2
I'd need to profile it though on HW to be sure. Falcon timings are weird and complicated when memory is involved.
I found Defjam's version posted here. It is very similar but I think it is probably faster on 68000 since addx.l have been removed (at the cost of fewer frac bits).
add.l d0,d1 ; uuuuVVvv
addx.b d3,d2 ; UU
move.w d1,d4
move.b d2,d4
move.b (a0,d4.w),(a1)+
cheers
|
[All messages in this thread] [Start new thread]
Topic
|
Posted by
|
Date
|
Mapping question
|
Laurent / Thadoss
|
May,08.2014-16:22
|
Re: Mapping question
|
dml
|
May,08.2014-19:04
|
Re: Mapping question
|
Laurent / Thadoss
|
May,08.2014-20:39
|
Re: Mapping question
|
dml
|
May,09.2014-00:27
|
Re: Mapping question
|
Laurent / Thadoss
|
May,08.2014-22:24
|
Re: Mapping question
|
Defjam
|
May,12.2014-16:57
|
Re: Mapping question
|
dml
|
May,13.2014-10:41
|
Re: Mapping question
|
p01
|
Jan,06.2015-00:01
|
Re: Mapping question
|
evil
|
Jan,06.2015-18:36
|
Re: Mapping question
|
Laurent / Thadoss
|
Jan,06.2015-21:58
|
Re: Mapping question
|
p01
|
Jan,06.2015-23:17
|
Re: Mapping question
|
p01
|
Jan,09.2015-13:46
|
Re: Mapping question
|
Orion_
|
Jan,09.2015-17:15
|
Re: Mapping question
|
Cyg
|
Jan,09.2015-23:34
|
Re: Mapping question
|
Patrice Mandin
|
May,13.2014-21:44
|
Re: Mapping question
|
Laurent / Thadoss
|
May,14.2014-22:08
|
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.
|