|name tables compression routines
|Page 1 of 1|
|Author:||Guest [ Mon Jan 03, 2005 8:47 pm ]|
|Post subject:||name tables compression routines|
are there any sample routines on compressing
nametables with algorithms like RLE ...
|Author:||tepples [ Mon Jan 03, 2005 10:46 pm ]|
Source code for compressing data with PackBits RLE (in C) and decompressing it to VRAM (6502 asm) is included in the Pin Eight NES Tools distribution.
If you can find any of my games' source code somewhere (I'm afraid to make it available again because I wrote it back when much less was known about the NES's hardware bugs, and I still fear what Michel Iwaniec can do to my reputation if I again make a ROM that hasn't been tested on hardware publicly available), you can probably find an example of how to use it.
|Author:||doynax [ Tue Jan 04, 2005 5:42 am ]|
|Post subject:||Re: name tables compression routines|
The algorithm choice depends a lot on the kind of scrolling you require.
If it's a single static screen or you can fit the entire level into a RAM buffer then just about any general purpose compression should work.
And then there's a big difference between uni-, an bidirectional scrolling scrolling. Since backing up is impossible with most algorithms, however it should be possible with RLE.
Full scrolling in all directions is really limiting. Even RLE might be impossible.
Another problem with the more advanced algorithms is that they generally eighter require large memory buffers or access to the decompressed data, neighter of which works well with the NES's hardware. So a memory expansion really makes a big difference.
The most popular name table compression is using meta tiles, since it works in just about any situation and can easily be combined with other algorithms.
|Page 1 of 1||All times are UTC - 7 hours|
|Powered by phpBB® Forum Software © phpBB Group