-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Downsampling breaks on systems with multiple monitors. #15
Comments
this might be good: https://crates.io/crates/display-info |
switched over to that display-info crate but this will need testing. idk if it will blow up on other systems |
I wonder how this crate will play on something FreeBSD as I would like Roseate to support that. 🤔 |
display-info doesn't work on freebsd. |
I guess someone will have to add support to display-info for it then. |
it could be a matter of just allowing the linux module in display-info for freebsd too but I don't know that until I can test it or get someone to test it. https://doc.rust-lang.org/reference/conditional-compilation.html#target_os |
@r3tr0ananas if you want something to work on could you possibly try and get display-info to work in FreeBSD. I was having trouble getting x11 in FreeBSD to pick up my mouse under a VM. (I should probably try USB passthrough) |
I already tried it with adding |
rdev's
display_size()
on systems with more than one monitor returns the dimensions of all the monitors combined which breaks the image down-sampling optimization as it gets skipped if those combined monitor dimensions are bigger than the image which is almost always true.Down-sampling optimization should only occur if the image is quite a bit bigger than ONLY the current monitor in use but
display_size()
from rdev returns the size of all the monitors combined. This is important as now images that are high res will NOT get down-sampled leading to pixely images and more memory being consumed than normal.Source code in question:
roseate/src/app.rs
Lines 96 to 104 in 5456d28
The text was updated successfully, but these errors were encountered: