egui/crates
Varphone Wong 6f59a14c4d
Add `Options::reduce_texture_memory` to free up RAM (#4431)
## 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.
2024-05-28 09:13:43 +02:00
..
ecolor Move dependencies to workspace (#4495) 2024-05-14 11:02:49 +02:00
eframe Fix: Don't `.forget()` RAF closure (#4551) 2024-05-27 21:55:23 +02:00
egui Add `Options::reduce_texture_memory` to free up RAM (#4431) 2024-05-28 09:13:43 +02:00
egui-wgpu Do no use the ahash reimport (#4504) 2024-05-27 16:24:50 +02:00
egui-winit Do no use the ahash reimport (#4504) 2024-05-27 16:24:50 +02:00
egui_demo_app Add `Options::reduce_texture_memory` to free up RAM (#4431) 2024-05-28 09:13:43 +02:00
egui_demo_lib Add improved pixel alignment test with alternating white/black lines (#4537) 2024-05-24 15:55:36 +02:00
egui_extras Do no use the ahash reimport (#4504) 2024-05-27 16:24:50 +02:00
egui_glow Do no use the ahash reimport (#4504) 2024-05-27 16:24:50 +02:00
egui_plot Plot now respects the `interact_radius` set in the UI's style (#4520) 2024-05-27 19:23:15 +02:00
egui_web Fix typos (#2866) 2023-04-18 15:52:45 +02:00
emath Move dependencies to workspace (#4495) 2024-05-14 11:02:49 +02:00
epaint Don't panic when replacement glyph is not found (#4542) 2024-05-27 11:53:06 +02:00