-
Notifications
You must be signed in to change notification settings - Fork 958
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
Mapbox #958
Mapbox #958
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Big improvement overall to performance/usability imo, looks good to go.
Hey @scarlac ! We need your front end performance expertise here :) I see a deterioration of the graphical performance due to aliasing on my 22 inch, medium-res screen that no one else seems to see on higher ppi screens: have a look & try it yourself: Alising is visible on country and arrows, but is especially visible on arrows. Would you happen to have an idea why alising appears on arrows? We did not change anything specifically about arrows in this PR, it's still the same gif! Yet they now appear aliased |
Hey @brunolajoie ! Yeah I see they are pixelated. Testing with Firefox 57 (aka Quantum) in "Low Res" mode on macOS, the fix seems to be to apply Take a look here: |
I should add that I see the same issue on the production site. |
@brunolajoie can you try the fix @scarlac mentions and post two screenshots to see if it helps? By the way: thanks very much @scarlac ! |
One small point, on the production map double click lets you zoom in. On staging this doesn't happen though it looks like the arrows refresh. |
@systemcatch I disabled double tap zoom because I was having a bug with it. |
@corradio It lets people zoom in/out easier than using the buttons on the top right, but I don't think it's that critical tbh. |
@scarlac interestingly, the aliasing issue happens both on staging and production in firefox. Yet in chrome, aliasing only appears on staging, and the fix you suggested does not improve it. |
bruno, Seems very odd but I was using retina but running in Low resolution mode which should be identical from a functional perspective. Did you try increasing translateZ? The other solutions would be to move around scaling and transforming in hopes it’s an issue related to order of transforms. Perhaps moving transform strait to arrow image or parent. I don’t have a specific solution in mind though. |
@jarek bug fixed (I hope) |
Yep that bug seems fixed |
List of changes:
class
Testable at https://staging.electricitymap.org
List of devices tested and associated performance improvements (please add yours):
(I use ✅ to indicate it works, and 🐇 to indicate it's fast)
List of desktop navigators tested on
List of remaining tasks:
Wind layer resize bug on mobile landscape(duplicate of Redraw wind/solar on resize #357)Failed to initialize WebGL