generated from cloudy-org/tauri-desktop-app-template
-
Couldn't load subscription status.
- Fork 2
Closed
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or request
Description
If you're on a laptop with a 1920x1080 display and it's scale factor is set to 125% like mine the incorrect width and height will be reported by display-info breaking the smart downsampling optimization in Roseate.
notes from here on...
Current Solution (egui viewport) and ways to deal with changes.
- Get egui viewport monitor size initially, if no viewport monitor size initially available default to 1920x1080.
- window is active, egui viewport monitor size should be available now
- if it's available, cache that (persistent cache) as one of the user's monitor resolutions.
- user moves window to 2nd display (with a higher resolution, e.g. 4k)
- egui viewport monitor size updates
- if the size is bigger than the previously cached size (a bigger monitor), cache that as another monitor size
Roseate is launched a 2nd time
- we now have the cached monitor sizes
- initially use the highest monitor size from cache (it's better to assume a higher monitor size than lower)
- unless the user's config says otherwise (some sort of
monitor_size_assumption_priority = "h"key, wherehpicks the highest resolution,mpicks the middle one andlpicks the lowest
If something like override_monitor_size is set then all of these checks are prevented and egui viewport monitor size is ignored.
Dynamic Sampling
While egui viewport monitor size is changing the image is also dynamically sampling itself to be the best quality for that current monitor. This will be called "Dynamic Sampling via Monitor Size".
Progress
- Cache egui viewport monitor size.
- Update cached monitor size when new monitor size found.
- Use cached monitor size initially.
-
Add some sort of(skipped)monitor_size_assumption_priority = "h"key. - Add
override_monitor_sizekey.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or request