10 December 2021, 15:11 | #1 |
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.
|
10 December 2021, 15:15 | #2 |
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.
|
10 December 2021, 15:53 | #3 | |
Lemon. / Core Design
Join Date: Mar 2016
Location: Tier 5
Posts: 1,211
|
Quote:
|
|
10 December 2021, 16:17 | #4 |
Registered User
Join Date: Nov 2015
Location: Italy
Posts: 191
|
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. |
10 December 2021, 17:15 | #5 |
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. |
22 December 2021, 09:36 | #6 |
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
|
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 |
|
|