egui
egui copied to clipboard
`egui`: Added `reduce_texture_memory` to Options
Summary
This PR introduces a new configuration option reduce_texture_memory in egui.
Changes
- Added
reduce_texture_memoryoption inegui. When set totrue,eguiwill 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 isfalse.
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.
merge conflict
merge conflict
Merge conflicts have been fixed.