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

Delay byte calculation #10

Open
niklr opened this issue Aug 12, 2019 · 0 comments
Open

Delay byte calculation #10

niklr opened this issue Aug 12, 2019 · 0 comments

Comments

@niklr
Copy link
Contributor

niklr commented Aug 12, 2019

Would you mind sharing more detail about how you came up with the calculation of the delay time low/high byte?

buffer[4] = (byte) (delay / 10 % 0x100); // Delay time low byte
buffer[5] = (byte) (delay / 10 / 0x100); // Delay time high byte

I tested delay values between 1 and 100 where 1 should produce the fastest and 100 the slowest GIF. However, it seems the lowest possible value is 20. Values below 20 are producing a slower result than values between 20 and 99.

Do you have any clue why that is?

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