RavEngine
Loading...
Searching...
No Matches
RavEngine::SystemInfo Namespace Reference

Classes

struct  Features
 
struct  GPUFeatures
 
struct  OSVersion
 
struct  PCIDevice
 

Enumerations

enum class  EArchitecture { Unknown , x86_64 , aarch64 , aarch64e }
 

Functions

uint16_t NumLogicalProcessors ()
 
std::string CPUBrandString ()
 
std::string GPUBrandString ()
 
std::string OperatingSystemNameString ()
 
uint32_t SystemRAM ()
 
OSVersion OperatingSystemVersion ()
 
uint32_t GPUVRAM ()
 
uint32_t GPUVRAMinUse ()
 
GPUFeatures GetSupportedGPUFeatures ()
 
PCIDevice GPUPCIData ()
 

Detailed Description

This namespace provides functions for getting basic information about the current device. Because most of these functions directly make operating system calls, DO NOT CALL THESE EVERY FRAME! Doing so will cause severe performance degradation. Instead, invoke the functions once and cache, or use a Timed system with an interval no faster than 1 second.

Function Documentation

◆ CPUBrandString()

std::string RavEngine::SystemInfo::CPUBrandString ( )
Returns
the string name of the GPU, as reported by the operating system (eg "Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz")

◆ NumLogicalProcessors()

uint16_t RavEngine::SystemInfo::NumLogicalProcessors ( )
Returns
the number of logical cores on the device

◆ OperatingSystemNameString()

std::string RavEngine::SystemInfo::OperatingSystemNameString ( )
Returns
the current operating system name

◆ SystemRAM()

uint32_t RavEngine::SystemInfo::SystemRAM ( )
Returns
total system memroy in MB