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

Light Bulb icons look crummy on Edge #120

Closed
samreid opened this issue Jul 28, 2017 · 16 comments
Closed

Light Bulb icons look crummy on Edge #120

samreid opened this issue Jul 28, 2017 · 16 comments
Assignees

Comments

@samreid
Copy link
Member

samreid commented Jul 28, 2017

image

@samreid samreid self-assigned this Jul 28, 2017
@samreid
Copy link
Member Author

samreid commented Jul 28, 2017

Discovered in #109

@samreid
Copy link
Member Author

samreid commented Jul 28, 2017

Mipmaps solved this same problem for firefox, but not on edge.

samreid added a commit to phetsims/circuit-construction-kit-common that referenced this issue Jul 28, 2017
@samreid
Copy link
Member Author

samreid commented Jul 28, 2017

dev.117 tried to fix the navbar icon. it is better but still pretty bad (depends on exact screen size)

image

@samreid
Copy link
Member Author

samreid commented Jul 28, 2017

@jonathanolson what do you recommend here?

@jonathanolson
Copy link
Contributor

Is that on a retina screen? I'm curious if it's not properly adjusting mipmaps (or is over-adjusting mipmaps) on Edge, and maybe a mipmap level adjustment would help.

@samreid
Copy link
Member Author

samreid commented Jul 28, 2017

It is a nonretina screen, how do I do a level adjustment?

@jonathanolson
Copy link
Contributor

If it's WebGL, I'd need to look it up.

If it's SVG/Canvas, adjust the Image node's mipmapBias (see setMipmapBias docs, note default is currently -0.7).

@samreid
Copy link
Member Author

samreid commented Jul 28, 2017

Those are SVG, I'll give that a try

@jonathanolson
Copy link
Contributor

Forgot that Edge forces default to Canvas (because of SVG rendering issues).

I tried (?) changing the mipmapBias a lot and I saw no change (so I'm going to wait to investigate at home to debug further)

@samreid
Copy link
Member Author

samreid commented Jul 28, 2017

I tried removing the "edge is only canvas" logic and everything looked beautiful.

image

The ellipses were even OK. Should we look into removing that workaround now? My edge is 40.15063.0.0

@phet-steele
Copy link
Contributor

phet-steele commented Jul 28, 2017

@samreid, maybe try the three test links at the top of this issue: phetsims/scenery#515

EDIT: or maybe not! Thought those were examples of a bug. Nonetheless, that's the issue that made Edge default to canvas I think.

@jonathanolson
Copy link
Contributor

I see comments in https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/3723601/ that indicate some text issues may be fixed in "EdgeHTML 15 / Edge 40" which should be in the Win10 "creators" update.

I'd recommend some investigation to see if we can identify Edge versions where our canvas workarounds aren't needed, so that we don't introduce other problems (like this).

I'll look into testing on latest Edge, and our browser usage on the website.

@jonathanolson
Copy link
Contributor

Looks like Edge 14.x is somewhat more common than Edge 15.x (with 13.x and 12.x trailing off quickly).

@samreid
Copy link
Member Author

samreid commented Jul 31, 2017

Cursory testing on edge 14 with svg looks legit

image

Though I did see one occurrence of an ellipsis about 20px to the left.

@samreid
Copy link
Member Author

samreid commented Jul 31, 2017

@jonathanolson determined that mipmaps are not used on canvas. We'll investigate adding that feature and it may address this problem (leaving renderer as canvas on Edge).

@samreid
Copy link
Member Author

samreid commented Jul 31, 2017

The scenery change looks great, here's the before/after:

image

@samreid samreid closed this as completed Jul 31, 2017
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

3 participants