The need for images that don't work with Zoom #2607
Replies: 2 comments 15 replies
-
Have you measured how much memory is involved? |
Beta Was this translation helpful? Give feedback.
-
Can you elaborate an where/why an image provider consumes (additional) memory? When you run an application on a single-zoom system, images are only loaded for the one zoom that is present. If you have a multi-zoom system and want to benefit from proper scaling for all monitors, there is no way around having images for the different required zooms. If you do not want to use that, you can disable the monitor-specific scaling for your application via system property or preference, see, e.g.: https://eclipse.dev/eclipse/markdown/?f=news/4.36/platform.md#monitor-specific-ui-scaling-as-default-windows-only If you are referring to the caching of image data inside the image providers, we could think about adding a flag to disable that caching mechanism. It's only there to avoid that an image needs to be loaded from hard drive multiple times (because that's quite inefficient), but if there is a preference of low memory consumption over performance, it could be worth to have a flag that changes the behavior. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
All images are now zoomable, and for that reason all images have an imageProvider that controls the image size.
This is great idea but image objects now consume memory because imageProvider takes up memory, which can be problematic if you have a lot of large images.
I think this problem could be solved if we could use an old-style image that doesn't allow zooming, where the image data is stored on the OS side and handled with a handle, rather than having the data stored in the image object itself, but is there no way to do this?
Beta Was this translation helpful? Give feedback.
All reactions