It is currently Sun Jan 20, 2019 12:26 pm

All times are UTC - 7 hours





Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: About re-using tiles
PostPosted: Mon Nov 12, 2018 5:18 am 
Offline

Joined: Wed Sep 19, 2018 3:28 am
Posts: 5
When a game has tiles that might be reused anywhere, do you have to copy them for each tileset or can you have dedicated banks for this?

I've posted a pic with such graphics that currently takes up 64 tiles.


Attachments:
Default.PNG
Default.PNG [ 1.17 KiB | Viewed 1443 times ]
Top
 Profile  
 
 Post subject: Re: About re-using tiles
PostPosted: Mon Nov 12, 2018 5:44 am 
Offline
User avatar

Joined: Thu Aug 13, 2015 4:40 pm
Posts: 354
Location: Rio de Janeiro - Brazil
You can use a mapper that lets you switch banks with a finer range, like 2k or 1k. So you can keep that 1k of CHR and change the other 3/4 of the 4k. MMC3 is a good candidate for this.

_________________
https://twitter.com/bitinkstudios <- Follow me on twitter! Thanks!


Top
 Profile  
 
 Post subject: Re: About re-using tiles
PostPosted: Mon Nov 12, 2018 6:25 am 
Online
User avatar

Joined: Sat Feb 12, 2005 9:43 pm
Posts: 11094
Location: Rio de Janeiro - Brazil
It really depends on the mapper you're using, and whether you're using CHR-ROM or CHR-RAM.

CHR-RAM gives you the ability to arrange the tiles however you want, because you manually have to put the tile patterns in place, byte by byte. You only need a single copy of these common tiles in PRG-ROM, that you can copy to VRAM whenever needed. The main drawback of CHR-RAM is that you can't switch tiles rapidly, since you have to do it byte by byte.

If you use CHR-ROM, it'll depend on how fine the CHR switching is. Some mappers will switch big chunks (8KB or 4KB) at a time, and in that case you will indeed have to duplicate the common tiles across different banks. But more advanced mappers, like the MMC3, can switch CHR in finer chunks (1KB and 2KB) so you may consider dedicating one slot to these common tiles permanently.


Top
 Profile  
 
 Post subject: Re: About re-using tiles
PostPosted: Mon Nov 12, 2018 9:30 am 
Offline

Joined: Wed Sep 19, 2018 3:28 am
Posts: 5
I was thinking of dividing into 2 KB for the common tiles, 2 KB for the status bar and 4 KB for the rest of the tiles. With an MMC3 mapper this should be possible.


Top
 Profile  
 
 Post subject: Re: About re-using tiles
PostPosted: Mon Nov 12, 2018 11:00 am 
Offline
User avatar

Joined: Thu Aug 13, 2015 4:40 pm
Posts: 354
Location: Rio de Janeiro - Brazil
Sounds good. Just mind you that each chr bank is 4k big. Bg + spr = 8k. So 1 KB for the common tiles, 1 KB for the status bar and 2 KB for the rest of the tiles.

_________________
https://twitter.com/bitinkstudios <- Follow me on twitter! Thanks!


Last edited by nesrocks on Mon Nov 12, 2018 3:28 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: About re-using tiles
PostPosted: Mon Nov 12, 2018 11:04 am 
Offline
User avatar

Joined: Thu Mar 31, 2016 11:15 am
Posts: 464
You can bankswitch at the status bar split though, so status bar tiles don't necessarily count in the 4kb.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group