Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > Doynamite 1.x
2014-03-07 11:45
Bitbreaker

Registered: Oct 2002
Posts: 508
Doynamite 1.x

Hi Folx,

after doynamite was used in some recent productions and people often stumbled over the .prg/.bin pitfall i decided to make some improvements to the packer, it can now spit out a sfx, level-packed data including a valid load-address and depack-address, as well as forward literals to keep the safety margin low. Raw data can still be loaded and output without any bytes added. Also the optimal bitlengths can be iterated now and the optimal table be glued to the output file.
I also happend to make a leaner version that lets the files get slightly bigger, but shrinks the depacker to $e0 bytes and makes depacking 5-10% faster. This might be of good use for demo systems where size matters a lot.
Any more things one could wish?
 
... 31 posts hidden. Click here to view all posts....
 
2014-03-13 12:15
WVL

Registered: Mar 2002
Posts: 902
Score \o/
2014-03-13 12:26
ChristopherJam

Registered: Aug 2004
Posts: 1409
Yes, well done!

All I can say in my defence is my decoder's even smaller than yours ;)
2014-03-14 08:16
Bitbreaker

Registered: Oct 2002
Posts: 508
A bad ratio still spoils the fun, no matter how fast and tiny the depackers get. Here's some benchmark results for loading + depacking the first side (well most of, not those 2 going under IO) of CL13:

bb hclfix                       $0ac4
lzwvl                           $0a08
doynax                          $08a9
doynax_small                    $08e8
doynax_small loaddecomp         $0749


So the additional loading overhead kills all the speed advantage. Loading and decompressing in one go gives the best results, but bloats the code a lot. The spindle system suffers from the same problem, a bad ratio due to having references in only one block. It feels still fast though and i get testfiles loaded around the same speed as with loaddecomp (is there a framecounter available in spindle to proof the feeling?)
2014-03-14 09:06
HCL

Registered: Feb 2003
Posts: 728
Thanx, now i will not waste my time ;). *this* will not keep me from winning any compo in the future, though perhaps other things will :P.
2014-03-14 09:20
enthusi

Registered: May 2004
Posts: 677
I get the feeling that it really doesnt matter much :)
Rather for crackers and onefilers or one-siders maybe? :)
2014-03-14 09:23
ChristopherJam

Registered: Aug 2004
Posts: 1409
Well, the main reason I was optimising for decoder size with tinycrunch was because that was all I had room for once the demo was decoded. It's admittedly a fairly special case, it's not often I'm scraping for every last fraction of a page.

Even the music data was interleaved into unused fragments of the character definitions (only 5 bytes of every 8 were visible).

Agreed that total time for load+decrunch is usually more significant, except in cases where you can background load into some free space, but then need to quickly decrunch between ending one part and starting the next.
Previous - 1 | 2 | 3 | 4 | 5 - Next
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
theK/ATL
algorithm
CopAss/Leader
Mr. Commodore/UCF/Un..
Bitbreaker/Performers
csabanw
Chesser/Blazon
Sychamis
Isildur/Samar
Guests online: 120
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 No Listen  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 Dawnfall V1.1  (9.5)
7 Rainbow Connection  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Triad  (9.3)
5 Censor Design  (9.3)
Top Diskmag Editors
1 Magic  (9.8)
2 hedning  (9.6)
3 Jazzcat  (9.5)
4 Elwix  (9.1)
5 Remix  (9.1)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.036 sec.