DeviceInfo beta
Interface of @v12-engine/client
ts
export interface DeviceInfoWhat is known of the device the game runs on, as far as a page is told
Members
cores
ts
cores: number;The processor's threads (navigator.hardwareConcurrency)
gpu
ts
gpu: string;Who made the GPU and what it is, as the browser says (often vague, sometimes nothing)
memory
ts
memory?: number;Gigabytes of memory, rounded down by the browser (navigator.deviceMemory: Chromium only)
mobile
ts
mobile: boolean;A phone or a tablet, as the browser says
pixels
ts
pixels: number;The screen's own pixels: what render resolution 1 draws, in full screen
software
ts
software: boolean;Drawn by the processor, with no GPU (SwiftShader, llvmpipe): the slowest there is