AnimatedGif icon indicating copy to clipboard operation
AnimatedGif copied to clipboard

Delay byte calculation

Open niklr opened this issue 5 years ago • 0 comments

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?

niklr avatar Aug 12 '19 12:08 niklr