egui icon indicating copy to clipboard operation
egui copied to clipboard

`egui`: Added `reduce_texture_memory` to Options

Open varphone opened this issue 1 year ago • 1 comments

Summary

This PR introduces a new configuration option reduce_texture_memory in egui.

Changes

  • Added reduce_texture_memory option in egui. When set to true, egui will discard the loaded image data after the texture is uploaded to the GPU, reducing memory usage. This is beneficial when handling a large number of images and retaining the image data is unnecessary, potentially saving substantial memory. However, this makes it impossible to serialize the loaded images or render on non-GPU systems. Default is false.

Impact

This new configuration option gives users more control over their memory usage, especially when dealing with a large number or large resolution of images. It allows users to optimize their applications based on their specific needs and constraints.

varphone avatar Apr 28 '24 14:04 varphone

merge conflict

emilk avatar May 27 '24 14:05 emilk

merge conflict

Merge conflicts have been fixed.

varphone avatar May 28 '24 01:05 varphone