English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

 
 
Thread Tools
Old 10 December 2021, 15:11   #1
aros-sg
Registered User
 
Join Date: Nov 2015
Location: Italy
Posts: 191
Blitting BOBs line by line

Has anyone ever tested if this would make sense in some cases (maybe many planes, maybe AGA, maybe CPU >= 020). For example for 32x32 bobs. Image data still interleaved, but only single plane mask so saving memory. For each line cpu would read mask into bltafwm, bltadat, bltalwm. Only once per line. Not once per plane-line as blitter would need to do for a standard BOB blit.
aros-sg is offline  
Old 10 December 2021, 15:15   #2
roondar
Registered User
 
Join Date: Jul 2015
Location: The Netherlands
Posts: 3,408
Interesting idea. I'd expect that to be a bit slower than blitting as normal due to the large number of blits you're doing, but if it works you can certainly save some memory over standard interleaved blitting. The only real question is whether or not going for straight non-interleaved blitting might not be faster if the goal is to simply save on mask memory.
roondar is offline  
Old 10 December 2021, 15:53   #3
DanScott
Lemon. / Core Design
 
DanScott's Avatar
 
Join Date: Mar 2016
Location: Tier 5
Posts: 1,211
Quote:
Originally Posted by aros-sg View Post
Has anyone ever tested if this would make sense in some cases (maybe many planes, maybe AGA, maybe CPU >= 020). For example for 32x32 bobs. Image data still interleaved, but only single plane mask so saving memory. For each line cpu would read mask into bltafwm, bltadat, bltalwm. Only once per line. Not once per plane-line as blitter would need to do for a standard BOB blit.
Why don't you try it out and report back with your findings ?
DanScott is offline  
Old 10 December 2021, 16:17   #4
aros-sg
Registered User
 
Join Date: Nov 2015
Location: Italy
Posts: 191
Quote:
Originally Posted by DanScott View Post
Why don't you try it out and report back with your findings ?
I'm not really coding much of anything at all these days.

Memory saving -> mask also would not need to be in chip ram. That would be advantage over std plane by plane blit, if otherwise speed would end up being similar. no idea. Cpu also can read mask faster from memory than blitter I guess (in addition to needing to read it only once per line, not once per planeline as said), so maybe there is a slight chance that in some cases it would be faster than std interleaved (with interleaved=multiplane mask) bob blit.
aros-sg is offline  
Old 10 December 2021, 17:15   #5
roondar
Registered User
 
Join Date: Jul 2015
Location: The Netherlands
Posts: 3,408
Hmm, using Fast Memory to store the mask might improve things. And yes, you'd only need to set the mask once per line so you do save some memory reads by the Blitter this way. Still, repeatedly calling and waiting on the Blitter to do the line-by-line blits does take some time in itself, so yeah - I don't honestly know what the result would be here. I guess only experiments can really show how this ends up working one way or the other.

Last edited by roondar; 10 December 2021 at 17:21.
roondar is offline  
Old 22 December 2021, 09:36   #6
sandruzzo
Registered User
 
Join Date: Feb 2011
Location: Italy/Rome
Posts: 2,281
If you have a bob that fit perfectly into bitmap, you can skip sources setting since blitter, after each blit will point next line
sandruzzo is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Blitting 8 Pixel Wide BOBs DanielAllsopp Coders. Asm / Hardware 20 03 February 2021 00:46
Heureka / Klett Red Line / Orange Line English education TTSAddict request.Apps 4 17 September 2017 14:15
Understanding the (in)famous copper's lost cycle (PAL all line, NTSC short line). ross Coders. Asm / Hardware 10 13 March 2017 17:50
Keep Active control panel "Line Mode" and "Interlaced Line Mode" Zilog request.UAE Wishlist 4 02 August 2014 23:08
on line gaming Dela Retrogaming General Discussion 4 08 October 2002 20:11

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 21:01.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.07085 seconds with 15 queries