Skip to content

What does deduplicate do to "include_background_gfx!"? #788

Answered by gwilymk
sigmasoldi3r asked this question in Q&A
Discussion options

You must be logged in to vote

Deduplicate will look at every tile that's needed to show a background, along with every horizontal and vertical flip to try and reduce the amount of space needed. Because if you show the same tile in multiple places in your background, then we only need to put it into video ram (vram) once and reference the same tile multiple times. You'll see a big difference if you look at the vram viewer in your emulator between enabling deduplicate and disabling it.

There isn't enough space in vram in the GBA for every tile to be unique when working with 256 colour palettes, so in that case you will need some repetition to make sure it fits in the limited space you have.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@sigmasoldi3r
Comment options

@corwinkuiper
Comment options

Answer selected by sigmasoldi3r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants