Skip to content

Default image cache configuration and macOS devices (external displays etc) #838

@KaiOelfke

Description

@KaiOelfke

I recently found out that for iOSAppOnMac on certain devices some animations with LazyImage were broken. The placeholder kept appearing intermittently. The reason turned out to be that the image was too big to be stored in the memory ImageCache. So it was loaded from disk each time and this isn't sync.

We fixed this by changing the ImageCache configuration. So from our side this is solved, but I wanted to create an issue here as you may want to consider slightly different defaults for platforms like macOS.

Many macOS machines have quite a lot of RAM these days and may be used with external high resolution displays from Apple. These have resolutions where the default per entry limit of 512 MB * 10% ~ 51 MB won't be enough.

For example with the Studio Display for a full screen image it's 512028804 ~ 56 MB.

In our case it was without an external display as our image host provides a few fixed size categories and not the exact size needed for the MacBook Pro display. So we fetch something with 5120 x 2666 on 14" MacBooks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    improvementNon-functional change that improves existing functionality

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions