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

core(emulation): keep DPR at 2.625 for mobile emulation #10749

Merged
merged 7 commits into from
May 12, 2020
Merged

Conversation

connorjclark
Copy link
Collaborator

Copy link
Collaborator

@patrickhulce patrickhulce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I love this and think it's a low risk way to stay on par with perf advice in <=5.x.x.

It's also incredibly unlikely IMO, that someone is going to lookup the Moto G4, learn it's a DPR of 3 and then hard code the images for a DPR of 3 instead of using window.devicePixelRatio and then complain about it...

We can consider eventually doing DPR 1 or 1.5 or something in a future breaking version if we'd like to get more aggressive.

Does anyone object to landing this for 6.0 to maintain parity?

@connorjclark
Copy link
Collaborator Author

FYI 4 years ago it was set to 2.625 https://github.com/GoogleChrome/lighthouse/blame/e0b44a57c935b1abb53babcd04916c53d5158d39/lighthouse-core/lib/emulation.js#L23

currently, in LH's unpublished state it is 3.

this PR sets it to 2, slightly more aggressive than the last version.

@paulirish paulirish added the 6.0 label May 12, 2020
// Moto G4 is really 3, but a higher value here works against
// our perf recommendations.
// https://github.com/GoogleChrome/lighthouse/issues/10741#issuecomment-626903508
deviceScaleFactor: 2,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to 2.625

@connorjclark
Copy link
Collaborator Author

we decided to slow down on this and simply not change this value between 5.6 and 6.0

@connorjclark connorjclark changed the title core(emulation): use dpr of 2 for mobile emulation core(emulation): keep DPR at 2.625 for mobile emulation May 12, 2020
@connorjclark connorjclark merged commit eabdfea into master May 12, 2020
@connorjclark connorjclark deleted the dpr2 branch May 12, 2020 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants