Skip to content

Slowdown (or little freeze) during the animation #24

Description

@FrenchLab47

Hello,

I'm testing your AnimatedGifs library with a 64x32 RGB led panel connected to an ESP32.
Everything seems to work normally, but I see a little slowdown (or freeze) during the animation.

This happens with all GIFs of more than 30 frames when passing around the frame 30,
The animation remains fluid when the GIF contains less than 30 frames, or when the GIF is very compressed (and degraded).

I tested with many GIF of 64x32 pixels, compressed or not, with different color palettes.
This slowdown to frame 30, is even more visible if I accelerate the treatment in this way:
nextFrameTime_ms = millis () + (5 * frameDelay); // 5 instead of 10

I also found that this slowdown occurs in the decompressAndDisplayFrame () function after the following condition:
if (result == ERROR_DONE_PARSING) {
result = 1 when the decoder arrives around on frame 30
And it also matches when filePositionCallback () returns a number bigger 16000 (approximately)

I observed this data with the Debug mode, but I do not know how to fix it and make my animation more fluid. Is this a problem of memory or buffer, in my ESP32?
Are there other parameters to adjust?

Thanks for your help.
Cordially.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions