DeviceReading
What Automatic reads of a device, which a function on Game’s
quality.start receives.
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
coarsePointer |
boolean |
Whether the main pointer is a finger, as on a phone or a tablet. |
deviceClass |
DeviceClass |
The class the engine made of the rest of this reading. |
devicePixelRatio |
number |
Device pixels per CSS pixel, such as 2 on a phone or a Retina screen. |
renderer |
string |
The renderer’s name as the browser gives it, such as "ANGLE (NVIDIA, NVIDIA GeForce RTX 4070 SUPER Direct3D11 vs_5_0 ps_5_0, D3D11)". A browser may mask it, as Safari’s "Apple GPU" and Firefox’s rounded names do, or leave it empty, so match a part of it, never the whole. |
screenPixels? |
number |
The screen’s own pixels, its width times its height times the device pixel ratio squared, such as 8,294,400 for a 4K screen; undefined where the page cannot read the screen. |