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

[RFC] Downsample when decoding #146

Closed

Commits on Jun 22, 2024

  1. [RFC] Downsample when decoding

    When used in very constrained systems (eg raspberry pi's) the memory pressure
    from Swayimg can be quite significant. It's very easy to bring down a
    platform with 512mb of RAM just by loading a few large pictures and
    keeping them in memory. Implementing this change would enable loaders to
    reduce image size, so that the actual pixels stored in memory are not
    more than those that will be rendered to screen.
    
    In my system, using not-very-large images (12mp) I see a reduction in
    memory usage of about 1/3, and faster render speeds.
    nicolasbrailo committed Jun 22, 2024
    Configuration menu
    Copy the full SHA
    fecb629 View commit details
    Browse the repository at this point in the history