Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ Include MDN Panels: if possible
Include Can I Use Panels: yes
</pre>

<wpt hidden>
cpu-performance.https.window.js
</wpt>

Introduction {#intro}
=====================

Expand Down Expand Up @@ -91,9 +95,7 @@ We will use the term <dfn>CPU</dfn> for the collection of central processing
units that are contained in a computing device.
We will use the term <dfn>core</dfn> to refer to a [=CPU=] part that can execute
instruction threads, [=physical cores|physical=] or [=logical cores|logical=],
as reported by the operating system. We will use the term <dfn>frequency</dfn>
to refer to the clock speed of the [=CPU=], expressed in cycles per second (Hz)
and determining how fast a [=physical core=] can execute instructions.
as reported by the operating system.

We will use the term <dfn>performance</dfn> to refer to how fast the [=CPU=] is
perceived to be, from the point of view of a web application. A fast [=CPU=]
Expand Down Expand Up @@ -258,19 +260,19 @@ function getPresetFeatures() {
switch (navigator.cpuPerformance) {
case 1:
return {
videoQuality: "QVGA",
videoQuality: 'QVGA',
frameRate: 15,
effects: [],
};
case 2:
return {
videoQuality: "VGA",
videoQuality: 'VGA',
frameRate: 15,
effects: ['voice-detection', 'animated-reactions'],
};
case 3:
return {
videoQuality: "720p",
videoQuality: '720p',
frameRate: 30,
effects: ['voice-detection', 'animated-reactions',
'noise-reduction'],
Expand All @@ -279,7 +281,7 @@ function getPresetFeatures() {
case 0: // Assuming high performance settings for unknown devices
default: // and for performance tiers higher than 4.
return {
videoQuality: "1080p",
videoQuality: '1080p',
frameRate: 30,
effects: ['voice-detection', 'animated-reactions',
'noise-reduction', 'virtual-background'],
Expand Down
Loading