![]() |
![]() |
#1 |
Newbie Amiga programmer
Join Date: Jun 2012
Location: Front of my A500+
Age: 38
Posts: 372
|
"Asymmetric" DPF: possible?
Is it possible to create a DPF screen with different bitdepth for back and front planes? For example 3 bit for the front plane and only 1 for the back.
Any approach is ok, until it works. |
![]() |
![]() |
#2 | |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 54
Posts: 4,491
|
Quote:
So: --- OCS/ECS 1: 1 2: 1 - 1 3: 2 - 1 4: 2 - 2 5: 3 - 2 6: 3 - 3 --- AGA 7: 4 - 3 8: 4 - 4 |
|
![]() |
![]() |
#3 |
Registered User
Join Date: Jun 2016
Location: europe
Posts: 1,062
|
Exactly, because you can only specify how many active bitplanes are there in total (bugs excluded :P). So e.g. 5 could mean 3/2 or 4/1, and to avoid ambiguity (and some internal HW design limitations, perhaps) the rule is always N/N if even and N/(N-1) if odd.
If you really need other combos, single playfield and split the palette and bitplanes manually as needed. It won't give you all the features of DPF (e.g. scrolling per playfield), but in some cases it might suffice. Depends what you are doing. |
![]() |
![]() |
#4 |
Newbie Amiga programmer
Join Date: Jun 2012
Location: Front of my A500+
Age: 38
Posts: 372
|
@ross:
I don't understand. Why is that a problem? The bitplanes' pointers can be set individually; isn't there a trick or anything which makes the Amiga read less bitplanes for the back, than the front or vice versa? It is not a problem, if the bitplane pointer is used, until the memory and the time of reading the non-used bitplanes are spared. @a/b: Bugs excluded? Is there a HW bug which allows this? |
![]() |
![]() |
#5 |
Registered User
Join Date: May 2023
Location: Norwich
Posts: 429
|
@TCH No, it's just a fundamental limitation of DPF on the Amiga. Of course you could always leave a bitplane empty if you want to reduce how much blitting you need to do, but you still have to pay the DMA price for it.
|
![]() |
![]() |
#6 | |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 54
Posts: 4,491
|
Not a problem per se, the bitplane pointers are all separate, but then color management must be done carefully and the two playfields cannot use separate hardware scroll.
DPF is a convenience provided by the chipset to make life easier, but it lacks support for a defined management of how to allocate the bitplanes (they are distributed equally between even and odd). See everything a/b wrote. Quote:
|
|
![]() |
![]() |
#7 | ||||
Newbie Amiga programmer
Join Date: Jun 2012
Location: Front of my A500+
Age: 38
Posts: 372
|
Quote:
Quote:
Quote:
Quote:
Sorry, if i ask stupid questions, but i do not know the hardware that deep to see clearly. |
||||
![]() |
![]() |
#8 | ||
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 54
Posts: 4,491
|
Quote:
This also answers the next two questions. Even if you completely zero the bitplane you would still have the data fetch. So what would be the point of having 3+1, if you would have to fetch 5 planes anyway? EDIT: in fact there are uses for this case (especially for effects in demos), but you must be perfectly aware of the strengths and weaknesses, but I don't think they are what you need because I imagine you would like to do this division to reduce DMA traffic Quote:
This isn't how this 'bug' is usually used anyway, we're getting off topic ![]() Last edited by ross; 19 November 2023 at 22:40. |
||
![]() |
![]() |
#9 | ||
Newbie Amiga programmer
Join Date: Jun 2012
Location: Front of my A500+
Age: 38
Posts: 372
|
Quote:
Quote:
Thanks for the answers guys. EDIT:Yep, that was my aim. |
||
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
"Diabolik" & "Dylan Dog" & "Tex" & "Time Runners" series | DamienD | request.Old Rare Games | 20 | 21 July 2022 16:58 |
"Voices8" 8 Channel Soundtracker "DemoSongI" song - "This is the Amiga with 8 Voices" | DemosongIHunter | request.Music | 45 | 23 May 2022 20:07 |
"Screech!! v2.41" & "Screech!! [AGA] v2.51" - "HD install" --> "ADFs" | DamienD | request.Old Rare Games | 45 | 15 June 2020 12:42 |
"Reminder "Lincs Amiga User Group aka "LAG" Meet Sat 5th of January 2013" | rockape | News | 4 | 30 January 2013 00:06 |
Problems with "Thespywholovedme", "Flood", "Shinobi" | sareks | support.Games | 12 | 03 May 2006 14:52 |
|
|