Search found 259 matches
- Thu Apr 14, 2016 1:28 am
- Forum: SNESdev
- Topic: Enjoying your froyo?
- Replies: 279
- Views: 57438
Re: Enjoying your froyo?
What do you mean by preconverted? You mean like LZ4 compressed versions of graphics in the SNES's graphics format? If this is the case, I unfortunately don't have any. I should have said "raw SNES graphics file" instead ;) I just want a binary file containing SNES tiles data (in bitplan f...
- Wed Apr 13, 2016 3:24 pm
- Forum: SNESdev
- Topic: Enjoying your froyo?
- Replies: 279
- Views: 57438
Re: Enjoying your froyo?
Wow! That's a pretty large improvement... :shock: So even if you were maxing out the bandwidth to vram, you should still have well over half the CPU power left. Yeah that was the idea, i really wanted something allowing me to use full bandwidth and still have enough CPU time to work with :) I alway...
- Wed Apr 13, 2016 2:41 pm
- Forum: SNESdev
- Topic: Enjoying your froyo?
- Replies: 279
- Views: 57438
Re: Enjoying your froyo?
New update, i was able to optimize my unpacking code while keeping the same compression level. I managed to obtain a decompression rate between 10.5 KB up to 14-15 KB / frame, i am happy with that final result :) I will probably keep only 2 compression schemes for the next SGDK : - aplib (good compr...
- Tue Apr 12, 2016 5:30 pm
- Forum: SNESdev
- Topic: Enjoying your froyo?
- Replies: 279
- Views: 57438
Re: Enjoying your froyo?
I finally completed my own packer based on LZ4 but optimized for the 68000 CPU (and so taking advantage of 16 bits move), the idea was to get something fast enough for "live" sprite data unpacking and also giving a good compression rate. Ok so to start speed (tested on Kega Fusion): It var...
- Tue Apr 12, 2016 6:46 am
- Forum: SNESdev
- Topic: Some question about Mode 7
- Replies: 22
- Views: 6795
Re: Some question about Mode 7
It's just about providing low / high priority to the mode 7 plan right ? I wonder why they called it EXTBG, that confused me as well the first time i saw it.
Kannagi> I guess you use the HDMA to set the M7 matrix regs ? That is the primary purpose for the HDMA actually.
Kannagi> I guess you use the HDMA to set the M7 matrix regs ? That is the primary purpose for the HDMA actually.
- Mon Apr 11, 2016 1:17 am
- Forum: SNESdev
- Topic: Every good programming technique
- Replies: 48
- Views: 10797
Re: Every good programming technique
I'm using 10.6 fixed point (signed) variable in SGDK, it's really convenient as you can manipulate it directly through 16 bits registers and it provides a good compromize between float part accuracy and integer part [-512..511] Of course that is not always enough but for me it's definitely a good ch...
- Sun Apr 03, 2016 11:30 am
- Forum: SNESdev
- Topic: Enjoying your froyo?
- Replies: 279
- Views: 57438
Re: Enjoying your froyo?
Yeah of course it won't compress as much but i believe it could be not that bad and the speed improvement can be really high 
The idea is about using it to (un)pack 4bpp GFX data anyway so i guess i won't make make a big different in compression ratio.
At least i hope so :p
The idea is about using it to (un)pack 4bpp GFX data anyway so i guess i won't make make a big different in compression ratio.
At least i hope so :p
- Sun Apr 03, 2016 5:16 am
- Forum: SNESdev
- Topic: Enjoying your froyo?
- Replies: 279
- Views: 57438
Re: Enjoying your froyo?
Just tested LZ4, well, definitely better than LZO... I can unpack at ~5 KB / frame using an optimized version of the unpacker. I wonder if i can improve it but definitely look like a better solution than LZO after all. Edit: Can't get more than 5.5 KB / frame bringing others minors optimizations. Wh...
- Sun Apr 03, 2016 4:20 am
- Forum: SNESdev
- Topic: Enjoying your froyo?
- Replies: 279
- Views: 57438
Re: Enjoying your froyo?
I'm curious about this LZO1X format but can't find a description of it anywhere... I only found the documentation on how to use the libraries and the source code of the decompressors. Do you have a link to a plain description of the format so I can see what the big deal is about this one? Unfortuna...
- Sat Apr 02, 2016 4:22 pm
- Forum: SNESdev
- Topic: Enjoying your froyo?
- Replies: 279
- Views: 57438
Re: Enjoying your froyo?
Tried to optimize my LZO1X unpacking code for 68k, can't obtain better than 3.5 KB / frame for an average compressed file...
I guess i will have to stick with UFTC for live real time sprite unpacking or get a look into LZ4 again.
I guess i will have to stick with UFTC for live real time sprite unpacking or get a look into LZ4 again.
- Thu Mar 31, 2016 12:55 am
- Forum: SNESdev
- Topic: Enjoying your froyo?
- Replies: 279
- Views: 57438
Re: Enjoying your froyo?
Yeah that's all the problem. And even using byte stream compression on a 68000 is not really efficient when you always have small amount of byte to copy (between 1 to 4). Typically LZx compression should perform really well on 65816 CPU as it don't mind to have unaligned word operation while it does...
- Wed Mar 30, 2016 10:11 am
- Forum: SNESdev
- Topic: Enjoying your froyo?
- Replies: 279
- Views: 57438
Re: Enjoying your froyo?
Yes but on an old machine you cannot have fast decompressing with modern compression scheme imo. If it was possible, i think it already exists . New compression algos are arriving every days, lz4 or snappy are modern and still provide fast unpacking =) Of course we couldn't use the best packer whic...
- Wed Mar 30, 2016 7:24 am
- Forum: SNESdev
- Topic: Enjoying your froyo?
- Replies: 279
- Views: 57438
Re: Enjoying your froyo?
I think there is no magic solution, it depend what you need, speed or ratio ,but speed and ratio at same time is a chimera .. Now, there are some very good compressor ,better by far than those in 80/90's,to find a good compromise or well suited for a particular project. That is the idea, today we h...
- Wed Mar 30, 2016 4:33 am
- Forum: SNESdev
- Topic: Enjoying your froyo?
- Replies: 279
- Views: 57438
Re: Enjoying your froyo?
Thanks Touko :) I actually experimented LZ4 just before switching to LZO but i could not find a proper minimal LZ4 packer source code working correctly and i definitely don't want to have a 10+ complexes sources files project for a simple compression algorithm, i just need a pack(..) / unpack(..) me...
- Wed Mar 30, 2016 12:44 am
- Forum: SNESdev
- Topic: Enjoying your froyo?
- Replies: 279
- Views: 57438
Re: Enjoying your froyo?
I'm just doing some researchs now to try to find a good compression algorithm which can offer good compression ratio and very fast unpacking (by very fast I mean ~10KB of data per frame so you can use it to unpack sprite data for instance). I implemented Sik's UFTC compression in SGDK and it provide...