Skip to content

GIF export frame delay is truncated, so a 15 fps GIF plays 11% fast #744

Closed

Description

@EtienneLescot

Found during the v1.13.0-rc.4 manual e2e pass (#741): CI-signed DMG, macOS 26.5 (25F71), M1.

crates/compositor/src/gif_export.rs:231: let delay_cs: u16 = (100_u32 / fps).max(1) as u16; — integer division truncates (the comment says "rounded").

Measured: GIF export at the default 15 fps, 508 frames → every Graphics Control Extension has a 6 cs delay → 30.48 s of playback for a 33.87 s programme, i.e. 16.7 fps, +11 % (the comment estimates ~4 % drift). 30 fps has the same error (3 cs → 33.3 fps). 20 and 25 fps are exact.

Expected: playback duration matches the programme. Rounding alone would make 15 fps 5 % slow (7 cs); the fix the comment already names — accumulate the fractional remainder and alternate 6/7 cs — keeps the total exact.

Activity

  1. added
    bug
    on Sep 24, 2026
  2. added
    status: fixed in main
    status: pending release
    on Sep 24, 2026
  3. added this to the Next Release milestone on Sep 24, 2026
  4. github-actions commented on Sep 24, 2026

    @github-actions
    Contributor

    Fixed by #748 and merged into main.

    This change is assigned to the Next Release release milestone and is not necessarily available in the latest downloadable desktop release yet. It is currently marked as status: pending release until a packaged release containing it is published.

  5. EtienneLescot commented on Sep 24, 2026

    @EtienneLescot
    MemberAuthor

    Moved into v1.13.0 as part of the pre-release cut.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugstatus: fixed in mainstatus: pending release

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions