Skip to content

zoom is not smooth anymore #1782

Closed
Closed

Description

@ParvinEyvazov

Description

Zoom is not smooth anymore. I have been using cap.so for more than 1.5 years now, but for the last couple of months, Zoom appears not to be smooth, but more glitchy. It is like this while in the studio (in the editor page) + after export. Not sure if it is a new form of zoom or a bug. Feel free to close this issue if it is not a bug.

Reproduction

regular recording. both in instant & studio mode

Additional Context

  • Cap version: 0.4.84
  • Operating system, version: mac tahoe | 26.3.1
  • Device (optional): mac pro | m1 pro
cap-zoom.mp4
Image

Thank you for this amazing project!!

Activity

  1. added
    bug
    on May 5, 2026
  2. linear commented on May 5, 2026

    @linear
  3. tembo commented on May 5, 2026

    @tembo

    Looking at the codebase, the zoom smoothness is controlled by a spring-based interpolation system in crates/rendering/src/zoom.rs and crates/rendering/src/zoom_focus_interpolation.rs. The spring parameters are defined at the top of zoom.rs:

    const SCREEN_SPRING_STIFFNESS: f64 = 200.0;
    const SCREEN_SPRING_DAMPING: f64 = 40.0;
    const SCREEN_SPRING_MASS: f64 = 2.25;

    There were significant changes to the zoom rendering engine in PR #1674 (merged March 21, 2026), which rewrote cursor and zoom interpolation to use fixed-timestep spring simulations with cluster-based targeting for auto-zoom segments. Then PR #1686 (merged March 27, 2026) made additional refinements to the zoom interpolation, including continuous zoom-out transitions with ramp easing and a "gentle" cursor-visibility enforcement mode.

    The instant_animation flag on ZoomSegment (in crates/project/src/configuration.rs:656) controls whether a segment uses the spring easing or instant transitions. If this is getting set unexpectedly, it would cause abrupt jumps rather than smooth transitions.

    A few things worth investigating:

    1. Does this occur with both auto-zoom (cursor-following) and manual zoom segments?
    2. Is the glitchiness consistent throughout playback or only during certain transitions (zoom-in vs zoom-out)?
    3. Does it reproduce when exporting, or only in the preview/editor?

    Related issues:

    The screen movement spring configuration is also exposed per-project in project_config.screen_movement_spring, which gets passed through to the ZoomFocusInterpolator in export.rs:413 and playback.rs.

  4. richiemcilroy commented on May 5, 2026

    @richiemcilroy
    Member

    Oh wow that does not look good! Definitely something wrong here. Is it possible for you to zip the .cap file and send to me via richie@cap.so - this way I can replicate directly. Cheers!

  5. richiemcilroy commented on May 7, 2026

    @richiemcilroy
    Member

    Hey! This should be fixed in 0.4.85. Releasing soon.

  6. ParvinEyvazov commented on Jun 2, 2026

    @ParvinEyvazov
    Author

    Thank you @richiemcilroy 🚀

  7. richiemcilroy commented on Jun 2, 2026

    @richiemcilroy
    Member

    Hey @ParvinEyvazov v0.5 is released. Can you confirm if it's better?

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions