Skip to content
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

Jagged lines in 6.0.901.0 #192

Open
astrodavid10 opened this issue Dec 30, 2021 · 9 comments
Open

Jagged lines in 6.0.901.0 #192

astrodavid10 opened this issue Dec 30, 2021 · 9 comments

Comments

@astrodavid10
Copy link

Version 6.0.901.0 shows jagged lines upon opening the application that resolve themselves with a window resize.
jagged lines wwt
.

@pkgw
Copy link
Contributor

pkgw commented Jan 3, 2022

I see that you found the work that I've been doing towards automating release builds! @Carifio24 will take a look at this. Is this issue happening on a HiDPI display?

@astrodavid10
Copy link
Author

Yes! And also yes, 4k monitor, although with Windows scaling it is 2560 by 1440

@Carifio24
Copy link
Member

I would guess that this is a resolution/display-based issue, since I'm not seeing this on the monitors on my machine (neither of which are HiDPI). I'll see if there are any settings I can tweak to try to reproduce this.

@astrojonathan
Copy link
Member

HiDPI and the modes are a difficult challenge. I can take a look at this and see if I can create a workaround to cause a immediate rescale on startup to let DX know the DPI scaling is in place. I think it has to do with initialization flow in the HiDPI scaling on startup.

@Carifio24
Copy link
Member

I've been trying to look into this, but without access to a HiDPI monitor it's pretty difficult to test anything out.

If a window resize makes the jagged lines go away, would calling OnResize(EventArgs.Empty) in the Earth3d constructor (or maybe Earth3d_Load) do the trick? Obviously it would be nice to find a real fix, but if we're somewhat pressed for time, maybe that's a workaround.

@astrodavid10
Copy link
Author

This was an issue in the past #131 and #132

@Carifio24
Copy link
Member

Here's a build with a call to OnResize(EventArgs.Empty) at the end of the Earth3d constructor. @astrodavid10, could you (or anyone else who has a HiDPI monitor) try this out and see whether it fixes the problem?

https://drive.google.com/file/d/11I3Wx5bbz0E1Aoh8IunBt5ykGHFiGREM/view?usp=sharing

@astrodavid10
Copy link
Author

@Carifio24 This checks out for me - no more jagged lines!

@Carifio24
Copy link
Member

Great! Then we can use this workaround until we come up with something that more directly addresses the root cause.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants