Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the compression algorithm to always be at least as efficient as the one used by Rock Raiders #2

Open
Merigrim opened this issue Sep 22, 2014 · 0 comments
Assignees

Comments

@Merigrim
Copy link
Owner

While the FLH-files created by FlicTool can be read by Lego® Rock Raiders just fine, their file sizes are most of the time larger than the original files shipped with the game.

The current algorithm always recognizes repeated pixels as well as pixels that haven't been updated since the last frame in the delta frames, creating appropriate packets for them. However, this is not always optimal since every packet requires additional bytes describing copy/repeat length as well as pixels to skip.

This can be fixed by updating the algorithm to recognize scenarios where inserting a repeat packet or skipping single pixels would be detrimental to the output filesize.

@Merigrim Merigrim self-assigned this Sep 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant