Jump to content
IGNORED

sp65 changed - a lot


karri

Recommended Posts

Now for the algo:

 

- At first I run the simple scan, that is finding all literals and packed  groups and stores it in an intermediate format keeping start pixel and length.

  Later passes work on this.

- Then I run multiple passes to combine literals and packed groups:

  More then 3 2-pixel groups are converted into a literal group: Literal: 5+3*4 = 17 < 3*(5+4) = 27

  A sequence of literal, packed with < 3, literal is converted into a literal group.

 

Link to comment
Share on other sites

26 minutes ago, karri said:

Of course!

Great.

 

Quote

And I hope it is ok if I copy your code to sp65. I really don't see any point in going any further in optimisation when the end result is "mostly perfect". As Mary Poppins would say.

Yes of course. Please go ahead. I hope the code is clear enough.

Edited by 42bs
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...