Closed alloncm closed 1 year ago
It is documented under the OBJ priority section (the green box). Is the location not appropriate?
Regardless, the test ROM would be appreciated!
The location is nice (even though I'm not a UX person at all), I read this section when searching for documentation. Perhaps Im missing something but this section is not complete and as far I understand there is more this topic than just that.
On the CGB the there are 3 different places where this priority is declared (this section refers to only 1 of them):
You can read more about in the readme of my test rom (I didn't want to copy paste it all here)
The bottom line is that as far as I understand the relations and priorities between all those flags is not described at the Pandocs and I wanted to add an explanation for this (not sure where though).
Regardless of this you are free to use my test rom - https://github.com/alloncm/MagenTests (or tell me how to integrate it to this project myself).
Okay, I think I see what you mean. I believe this is described by #379:
Is that suitable?
This is kind of what I meant but I have a few comments on this
Anyway I do believe this info is important for a correct use of the CGB PPU and could be added even before this PR is merged (which could take some time as I understand).
BTW I can't wait for this awesome PR to be merged already (it could have really helped me with my emulator).
I confirmed the test ROM yields the same results on BGB than on my CGB-B and AGB.
I'd put the interaction between all of these priorities either in a dedicated "overview" page, or next to the CGB-only BG attributes (since there is only a single source of priority on DMG, hence this problem does not apply there).
Hi, when adding support for CGB to my GameBoy emulator, I noticed in the development of the new PPU that in the CGB mode the priority between the background layer and the sprites layer is not documented well and I couldn't figure out exactly the correct behavior and besides cgb-acid2 which really helped me there were no resources (at least that I found) so I decided to try and test it myself.
I wrote a test rom for this and documented the expected behavior in the readme of the project but I thought maybe it will better to upstream this to the Pandocs as well.
Wanted to verify that this indeed is a requested feature before I actually add this and open a PR.
Thanks