game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
Loading...
Searching...
No Matches
system_info_service.h
Go to the documentation of this file.
1// SPDX-License-Identifier: MIT
2// ==============================================================================
3// system_info_service.h
4// ==============================================================================
5// Centralized system detection service for hardware and software capabilities
6// ==============================================================================
7// This service provides a unified API for detecting:
8// - GPU vendor, model, driver version
9// - CPU info and core count
10// - Installed Proton/Wine versions
11// - Kernel version and features (fsync, esync support)
12// - Available performance tools (MangoHud, GameMode, etc.)
13// - Display server (X11/Wayland)
14//
15// ## Thread Safety
16// All methods are thread-safe. Detection is cached for performance.
17//
18// ## Usage Example
19// @code
20// auto& sys = SystemInfoService::instance();
21// if (sys.getGPUVendor() == GPUVendor::AMD) {
22// // Enable AMD-specific optimizations
23// }
24// @endcode
25// ==============================================================================
26
27#pragma once
28
29#include <chrono>
30#include <cstdint>
31#include <mutex>
32#include <string>
33#include <vector>
34
35// ==============================================================================
36// Enumerations
37// ==============================================================================
38
46
47enum class GPUGeneration
48{
49 // AMD generations
50 AMD_RDNA4, // RX 9000 series (Navi 44/48)
51 AMD_RDNA3, // RX 7000 series
52 AMD_RDNA2, // RX 6000 series
53 AMD_RDNA1, // RX 5000 series
54 AMD_Vega, // Vega series
55 AMD_Polaris, // RX 400/500 series
56 AMD_GCN4, // R9 285, R9 380, R9 Fury (Tonga/Fiji)
57 AMD_GCN3, // R7 260X, R9 290 (Bonaire, Hawaii)
58 AMD_GCN2, // R7 250, R9 270 (Oland, Pitcairn refresh)
59 AMD_GCN1, // HD 7000 series (Tahiti, Pitcairn, Cape Verde)
60 AMD_TeraScale, // HD 2000-6000 series (no Vulkan support)
62
63 // NVIDIA generations
64 NVIDIA_Ada, // RTX 40 series
65 NVIDIA_Ampere, // RTX 30 series
66 NVIDIA_Turing, // RTX 20 series, GTX 16 series
67 NVIDIA_Pascal, // GTX 10 series
69
70 // Intel generations
71 Intel_Arc, // Arc A-series (Alchemist)
72 Intel_Xe, // Xe integrated
74
76};
77
84
92
93enum class CPUScheduler
94{
95 // Traditional schedulers
96 BORE, // CachyOS default (BORE = Burst-Oriented Response Enhancer)
97 EEVDF, // Kernel 6.6+ default (Earliest Eligible Virtual Deadline First)
98 CFS, // Older kernels (Completely Fair Scheduler)
99
100 // sched-ext schedulers (pluggable BPF-based schedulers)
101 SchedExt_LAVD, // scx_lavd - Low-latency Audio/Video/Desktop scheduler
102 SchedExt_Rusty, // scx_rusty - Rust-based general purpose scheduler
103 SchedExt_Bpfland, // scx_bpfland - BPF-based scheduler
104 SchedExt_Other, // Other sched-ext scheduler loaded
105
107};
108
116
117// ==============================================================================
118// Data Structures
119// ==============================================================================
120
121/**
122 * @struct GPUInfo
123 * @brief Detected GPU information
124 */
126{
129 std::string vendorName; // "AMD", "NVIDIA", "Intel"
130 std::string model; // e.g., "Radeon RX 7900 XTX"
131 std::string driverVersion; // e.g., "24.0.0" (Mesa) or "565.57.01" (NVIDIA)
132 std::string vulkanVersion; // e.g., "1.3.260"
133 std::string mesaVersion; // Mesa version for AMD/Intel (e.g., "24.3.0")
134 uint64_t vramMB = 0; // VRAM in megabytes
135 uint16_t deviceId = 0; // PCI device ID for generation detection
136 bool supportsVulkan = false;
137 bool supportsRayTracing = false;
138 bool supportsFSR = false; // AMD FidelityFX Super Resolution (all AMD)
139 bool supportsFSR3 = false; // FSR 3+ frame gen (RDNA2+)
140 bool supportsFSR4 = false; // FSR 4 ML upscaling (RDNA4 native)
141 bool supportsFSR4RDNA3 = false; // FSR 4 via PROTON_FSR4_RDNA3_UPGRADE (RDNA3 opt-in)
142 bool supportsDLSS = false; // NVIDIA DLSS (Turing+)
143 bool supportsDLSS3 = false; // DLSS 3 frame gen (Ada only)
144 bool supportsXeSS = false; // Intel XeSS
145 bool supportsHDR = false; // HDR output support
146
147 // Helper methods
157 bool isRDNA4() const
158 {
160 }
167 bool isArcGPU() const
168 {
170 }
185 bool isTeraScale() const
186 {
188 }
189 bool hasVulkanSupport() const
190 {
191 // TeraScale GPUs have no Vulkan support
193 }
194};
195
196/**
197 * @struct MemoryInfo
198 * @brief System memory information
199 */
201{
202 uint64_t totalMB = 0; // Total system RAM in MB
203 uint64_t availableMB = 0; // Currently available RAM in MB
204 uint64_t swapTotalMB = 0; // Total swap space in MB
205 uint64_t swapFreeMB = 0; // Free swap space in MB
206
207 // Helper methods
208 bool hasEnoughRAM(uint64_t requiredMB) const
209 {
210 return totalMB >= requiredMB;
211 }
212 bool is16GBOrMore() const
213 {
214 return totalMB >= 16000;
215 }
216 bool is32GBOrMore() const
217 {
218 return totalMB >= 32000;
219 }
220 double usagePercent() const
221 {
222 return totalMB > 0
223 ? (1.0 - static_cast<double>(availableMB) / static_cast<double>(totalMB)) * 100.0
224 : 0.0;
225 }
226};
227
228/**
229 * @struct MonitorInfo
230 * @brief Display/monitor information
231 */
233{
234 std::string name; // Monitor name/model
235 int widthPixels = 0; // Horizontal resolution
236 int heightPixels = 0; // Vertical resolution
237 double refreshRate = 0.0; // Refresh rate in Hz
238 bool isPrimary = false; // Is this the primary display
239 bool supportsVRR = false; // Variable Refresh Rate (FreeSync/G-Sync)
240 bool supportsHDR = false; // HDR capable
241 std::string connector; // e.g., "DP-1", "HDMI-A-1"
242
243 // Helper methods
244 bool is4K() const
245 {
246 return widthPixels >= 3840 && heightPixels >= 2160;
247 }
248 bool is1440p() const
249 {
250 return widthPixels >= 2560 && heightPixels >= 1440;
251 }
252 bool isHighRefresh() const
253 {
254 return refreshRate >= 120.0;
255 }
256};
257
258/**
259 * @struct ControllerInfo
260 * @brief Connected game controller information
261 */
263{
264 std::string name; // Controller name
265 std::string path; // Device path (e.g., /dev/input/js0)
266 std::string type; // "xbox", "playstation", "nintendo", "generic"
267 bool isWireless = false;
268 uint16_t vendorId = 0;
269 uint16_t productId = 0;
270};
271
272/**
273 * @struct CPUInfo
274 * @brief Detected CPU information
275 */
277{
278 std::string model; // e.g., "AMD Ryzen 9 7950X"
279 std::string vendor; // "AMD", "Intel"
280 int coreCount = 0;
281 int threadCount = 0;
282 int performanceCores = 0; // P-cores (Intel hybrid CPUs)
283 int efficiencyCores = 0; // E-cores (Intel hybrid CPUs)
284 double frequencyMHz = 0.0;
285 double maxFrequencyMHz = 0.0; // Max boost frequency
286 std::string governor; // Current CPU governor (e.g., "performance", "schedutil")
288 std::string schedExtName; // sched-ext scheduler name if active (e.g., "scx_lavd")
289 bool isHybrid = false; // Intel hybrid architecture (P+E cores)
290 bool hasSchedExt = false; // Kernel supports sched-ext framework
291
292 // Helper methods
294 {
295 return governor == "performance";
296 }
298 {
299 return governor == "performance" || governor == "schedutil";
300 }
308 bool isGamingOptimal() const
309 {
310 // LAVD is designed for low-latency gaming/desktop
312 }
313};
314
315/**
316 * @struct KernelInfo
317 * @brief Kernel version and feature support
318 */
320{
321 std::string version; // e.g., "6.18.4-2-cachyos"
322 std::string distro; // e.g., "CachyOS", "Arch Linux", "Ubuntu"
323 bool supportsFsync = false;
324 bool supportsEsync = false; // Always true on modern kernels
325 bool supportsNTSync = false; // NTSync (kernel 6.14+ with module loaded)
326 bool ntsyncModuleLoaded = false; // Whether ntsync module is actually loaded
327 bool isCachyOS = false; // CachyOS-specific optimizations available
328
329 // Detailed capability info for UI display
333 std::string fsyncStatus; // "available", "not_supported", "kernel_too_old"
334 std::string
335 ntsyncStatus; // "available", "module_not_loaded", "kernel_too_old", "needs_modprobe"
336
337 // Kernel parameters relevant for gaming
338 int maxMapCount = 0; // vm.max_map_count (should be >= 2147483642)
339 int swappiness = -1; // vm.swappiness (lower is better for gaming, -1 = not checked)
340 bool maxMapCountOk = false; // true if >= recommended value
341 bool swappinessOk = false; // true if <= 10
342};
343
344/**
345 * @struct RunnerInfo
346 * @brief Information about an installed runner (Proton/Wine)
347 */
349{
350 std::string name; // Display name (e.g., "Proton 9.0-4")
351 std::string path; // Installation path
352 std::string version; // Version string
353 std::string type; // "proton", "wine", "proton-ge", "proton-cachyos"
354 bool isDefault = false; // System/Steam default
355};
356
357/**
358 * @struct ToolAvailability
359 * @brief Available performance tools and utilities
360 */
362{
363 bool mangoHud = false;
364 bool gameMode = false;
365 bool gamePerformance = false; // CachyOS game-performance
366 bool vkBasalt = false;
367 bool gamescope = false;
368 bool strangle = false; // libstrangle FPS limiter
369 bool powerProfilesDaemon = false; // power-profiles-daemon service
370 bool ananicyCppActive = false; // ananicy-cpp.service active (system-wide scheduler
371 // daemon shipped by CachyOS gaming spins). When true,
372 // gamemoderun should be skipped — both set sched params
373 // and will fight each other.
374
375 std::string mangoHudVersion;
376 std::string gameModeVersion;
377
378 /// True iff gamemoderun should actually be invoked. False when
379 /// ananicy-cpp.service is active (ananicy-cpp already manages scheduling
380 /// system-wide and conflicts with gamemoderun). See:
381 /// https://discuss.cachyos.org/t/use-ananicy-cpp-with-game-performance/21080
382 bool shouldUseGameMode() const
383 {
384 return gameMode && !ananicyCppActive;
385 }
386};
387
388/**
389 * @struct StorageInfo
390 * @brief Storage device information for game paths
391 */
393{
394 std::string mountPoint; // e.g., "/home", "/mnt/games"
395 std::string device; // e.g., "/dev/nvme0n1p2"
396 std::string filesystem; // e.g., "ext4", "btrfs"
398 uint64_t totalGB = 0;
399 uint64_t freeGB = 0;
400 bool isTRIM = false; // TRIM/discard support enabled
401
402 // Helper methods
403 bool isFast() const
404 {
406 }
407};
408
409/**
410 * @struct PowerInfo
411 * @brief Power and thermal information
412 */
414{
416 bool isLaptop = false; // Detected laptop (has battery)
417 bool onBattery = false; // Currently on battery power
418 int batteryPercent = -1; // Battery level (-1 = no battery)
419 bool hasTLP = false; // TLP power management installed
420 std::string activeProfile; // Current power profile name
421};
422
423/**
424 * @struct SystemReadiness
425 * @brief System readiness checks for optimal gaming
426 *
427 * Verifies kernel parameters, resource limits, and memory settings
428 * that are important for running games smoothly on Linux.
429 */
431{
432 bool maxMapCountOk = false; // vm.max_map_count >= 1048576
433 int maxMapCount = 0;
434 bool splitLockOk = false; // kernel.split_lock_mitigate = 0
436 bool nofileLimitOk = false; // RLIMIT_NOFILE soft >= 524288
437 uint64_t nofileSoft = 0;
438 bool thpOk = false; // transparent_hugepage = madvise
439 std::string thpSetting;
440
441 bool allOk() const
442 {
444 }
445 std::vector<std::string> warnings() const;
446};
447
448/**
449 * @struct SystemCapabilities
450 * @brief Complete system capabilities summary
451 */
453{
462 std::vector<RunnerInfo> runners;
463 std::vector<MonitorInfo> monitors;
464 std::vector<ControllerInfo> controllers;
465 std::vector<StorageInfo> storage;
466
467 // Quick access helpers
468 bool hasAMDGPU() const
469 {
470 return gpu.vendor == GPUVendor::AMD;
471 }
472 bool hasNVIDIAGPU() const
473 {
474 return gpu.vendor == GPUVendor::NVIDIA;
475 }
476 bool hasIntelGPU() const
477 {
478 return gpu.vendor == GPUVendor::Intel;
479 }
480 bool canUseFsync() const
481 {
482 return kernel.supportsFsync;
483 }
484 bool canUseNTSync() const
485 {
486 return kernel.supportsNTSync && kernel.ntsyncModuleLoaded;
487 }
488 bool canUseGameMode() const
489 {
490 return tools.gameMode;
491 }
492 bool isCachyOS() const
493 {
494 return kernel.isCachyOS;
495 }
496 bool isWayland() const
497 {
499 }
500
501 // GPU generation helpers
502 bool hasRDNA2OrNewer() const
503 {
504 return gpu.isRDNA2OrNewer();
505 }
506 bool hasRTXCapable() const
507 {
508 return gpu.isRTXCapable();
509 }
510 bool hasArcGPU() const
511 {
512 return gpu.isArcGPU();
513 }
514
515 // Memory helpers
516 bool has16GBRAM() const
517 {
518 return memory.is16GBOrMore();
519 }
520 bool has32GBRAM() const
521 {
522 return memory.is32GBOrMore();
523 }
524 bool hasEnoughRAMFor(uint64_t requiredMB) const
525 {
526 return memory.hasEnoughRAM(requiredMB);
527 }
528
529 // Monitor helpers
531 {
532 for (const auto& m : monitors)
533 {
534 if (m.isPrimary)
535 return &m;
536 }
537 return monitors.empty() ? nullptr : &monitors[0];
538 }
540 {
541 for (const auto& m : monitors)
542 {
543 if (m.isHighRefresh())
544 return true;
545 }
546 return false;
547 }
548 bool hasVRRMonitor() const
549 {
550 for (const auto& m : monitors)
551 {
552 if (m.supportsVRR)
553 return true;
554 }
555 return false;
556 }
557 bool hasHDRMonitor() const
558 {
559 for (const auto& m : monitors)
560 {
561 if (m.supportsHDR)
562 return true;
563 }
564 return false;
565 }
566
567 // Controller helpers
568 bool hasController() const
569 {
570 return !controllers.empty();
571 }
572 bool hasXboxController() const
573 {
574 for (const auto& c : controllers)
575 {
576 if (c.type == "xbox")
577 return true;
578 }
579 return false;
580 }
582 {
583 for (const auto& c : controllers)
584 {
585 if (c.type == "playstation")
586 return true;
587 }
588 return false;
589 }
590
591 // Power helpers
592 bool isOnBattery() const
593 {
594 return power.onBattery;
595 }
596 bool isLaptop() const
597 {
598 return power.isLaptop;
599 }
601 {
602 return power.profile == PowerProfile::Performance;
603 }
604
605 // Storage helpers
606 StorageType getStorageTypeForPath(const std::string& path) const;
607
608 // Get recommended sync method based on system capabilities
609 std::string getRecommendedSyncMethod() const
610 {
611 if (kernel.supportsNTSync && kernel.ntsyncModuleLoaded)
612 return "ntsync";
613 if (kernel.supportsFsync)
614 return "fsync";
615 if (kernel.supportsEsync)
616 return "esync";
617 return "none";
618 }
619
620 // Get recommended shader cache size in bytes based on VRAM
622 {
623 if (gpu.vramMB >= 12000)
624 return 12ULL * 1024 * 1024 * 1024; // 12GB
625 if (gpu.vramMB >= 8000)
626 return 8ULL * 1024 * 1024 * 1024; // 8GB
627 if (gpu.vramMB >= 4000)
628 return 4ULL * 1024 * 1024 * 1024; // 4GB
629 return 2ULL * 1024 * 1024 * 1024; // 2GB default
630 }
631
632 // Check if kernel parameters are optimized for gaming
634 {
635 return kernel.maxMapCountOk && kernel.swappinessOk;
636 }
637
638 // Check if system is optimally configured for gaming
640 {
641 return hasOptimalKernelParams() && cpu.hasOptimalGovernor() &&
643 }
644};
645
646// ==============================================================================
647// SystemInfoService Class
648// ==============================================================================
649
650/**
651 * @class SystemInfoService
652 * @brief Singleton service for system detection and capabilities
653 *
654 * Provides cached access to system hardware and software information.
655 * Detection is performed lazily on first access and cached for performance.
656 */
658{
659 public:
660 /**
661 * @brief Get singleton instance
662 */
663 static SystemInfoService& instance();
664
665 // Non-copyable
668
669 // ==========================================================================
670 // Quick Access Methods
671 // ==========================================================================
672
673 /**
674 * @brief Get GPU vendor
675 */
677
678 /**
679 * @brief Get GPU vendor name as string
680 */
681 std::string getGPUVendorName();
682
683 /**
684 * @brief Check if running on CachyOS
685 */
686 bool isCachyOS();
687
688 /**
689 * @brief Check if fsync is supported
690 */
691 bool supportsFsync();
692
693 /**
694 * @brief Check if NTSync is supported (kernel 6.2+ with module loaded)
695 */
696 bool supportsNTSync();
697
698 /**
699 * @brief Get recommended sync method as string
700 */
701 std::string getRecommendedSyncMethod();
702
703 /**
704 * @brief Get display server type
705 */
707
708 // ==========================================================================
709 // Detailed Info Methods
710 // ==========================================================================
711
712 /**
713 * @brief Get full GPU information
714 */
715 const GPUInfo& getGPUInfo();
716
717 /**
718 * @brief Get full CPU information
719 */
720 const CPUInfo& getCPUInfo();
721
722 /**
723 * @brief Get kernel information
724 */
725 const KernelInfo& getKernelInfo();
726
727 /**
728 * @brief Get available performance tools
729 */
731
732 /**
733 * @brief Get all installed runners (Proton/Wine versions)
734 */
735 const std::vector<RunnerInfo>& getInstalledRunners();
736
737 /**
738 * @brief Get memory information
739 */
740 const MemoryInfo& getMemoryInfo();
741
742 /**
743 * @brief Get connected monitors
744 */
745 const std::vector<MonitorInfo>& getMonitors();
746
747 /**
748 * @brief Get connected controllers
749 */
750 const std::vector<ControllerInfo>& getControllers();
751
752 /**
753 * @brief Get storage information
754 */
755 const std::vector<StorageInfo>& getStorageInfo();
756
757 /**
758 * @brief Get power/battery information
759 */
760 const PowerInfo& getPowerInfo();
761
762 /**
763 * @brief Get system readiness checks
764 */
766
767 /**
768 * @brief Get complete system capabilities
769 */
771
772 // ==========================================================================
773 // Refresh Methods
774 // ==========================================================================
775
776 /**
777 * @brief Force refresh of all cached data
778 */
779 void refresh();
780
781 /**
782 * @brief Refresh only runner list (faster than full refresh)
783 */
784 void refreshRunners();
785
786 /**
787 * @brief Check if tool is available by name
788 * @param toolName Tool binary name (e.g., "mangohud", "gamemoderun")
789 */
790 bool isToolAvailable(const std::string& toolName);
791
792 /**
793 * @brief Get path to tool binary
794 * @param toolName Tool binary name
795 * @return Path to binary or empty string if not found
796 */
797 std::string getToolPath(const std::string& toolName);
798
799 private:
801 ~SystemInfoService() = default;
802
803 void detectGPU();
804 void detectGPUModelFromLspci(const std::string& pciSlot, GPUInfo& gpu);
805 void detectGPUGeneration();
806 void detectDriverVersion();
807 void detectCPU();
808 void detectCPUGovernor();
809 void detectScheduler();
810 void detectKernel();
811 void detectKernelParams();
812 void detectNTSync();
813 void detectMemory();
814 void detectTools();
815 void detectRunners();
816 void detectDisplayServer();
817 void detectMonitors();
818 void detectControllers();
819 void detectStorage();
820 void detectPower();
821 void detectSystemReadiness();
822
823 // Helper for GPU generation detection (by device ID)
824 GPUGeneration detectAMDGeneration(uint16_t deviceId);
825 GPUGeneration detectNVIDIAGeneration(uint16_t deviceId);
826 GPUGeneration detectIntelGeneration(uint16_t deviceId);
827
828 // Fallback GPU generation detection (by model name)
829 GPUGeneration detectAMDGenerationFromModel(const std::string& model);
830 GPUGeneration detectNVIDIAGenerationFromModel(const std::string& model);
831 GPUGeneration detectIntelGenerationFromModel(const std::string& model);
832
833 // Helper for controller type detection
834 std::string detectControllerType(uint16_t vendorId, uint16_t productId);
835
836 // Helper for storage type detection
837 StorageType detectStorageType(const std::string& device);
838
839 SystemCapabilities capabilities_;
840 mutable std::mutex mutex_;
841 bool initialized_ = false;
842
843 // Cache timestamps for selective refresh
844 std::chrono::steady_clock::time_point lastFullRefresh_;
845 std::chrono::steady_clock::time_point lastRunnerRefresh_;
846 static constexpr auto CACHE_DURATION = std::chrono::minutes(5);
847};
std::string getToolPath(const std::string &toolName)
Get path to tool binary.
static SystemInfoService & instance()
Get singleton instance.
std::string getRecommendedSyncMethod()
Get recommended sync method as string.
const std::vector< RunnerInfo > & getInstalledRunners()
Get all installed runners (Proton/Wine versions).
GPUVendor getGPUVendor()
Get GPU vendor.
const SystemCapabilities & getCapabilities()
Get complete system capabilities.
const std::vector< MonitorInfo > & getMonitors()
Get connected monitors.
const ToolAvailability & getToolAvailability()
Get available performance tools.
const SystemReadiness & getSystemReadiness()
Get system readiness checks.
const MemoryInfo & getMemoryInfo()
Get memory information.
bool isCachyOS()
Check if running on CachyOS.
void refresh()
Force refresh of all cached data.
void refreshRunners()
Refresh only runner list (faster than full refresh).
bool isToolAvailable(const std::string &toolName)
Check if tool is available by name.
SystemInfoService & operator=(const SystemInfoService &)=delete
bool supportsFsync()
Check if fsync is supported.
const KernelInfo & getKernelInfo()
Get kernel information.
SystemInfoService(const SystemInfoService &)=delete
DisplayServer getDisplayServer()
Get display server type.
const GPUInfo & getGPUInfo()
Get full GPU information.
bool supportsNTSync()
Check if NTSync is supported (kernel 6.2+ with module loaded).
const std::vector< StorageInfo > & getStorageInfo()
Get storage information.
std::string getGPUVendorName()
Get GPU vendor name as string.
const PowerInfo & getPowerInfo()
Get power/battery information.
const CPUInfo & getCPUInfo()
Get full CPU information.
const std::vector< ControllerInfo > & getControllers()
Get connected controllers.
Detected CPU information.
std::string schedExtName
double maxFrequencyMHz
bool isPerformanceGovernor() const
CPUScheduler scheduler
std::string governor
bool isSchedExtActive() const
bool isGamingOptimal() const
std::string model
bool hasOptimalGovernor() const
std::string vendor
Connected game controller information.
Detected GPU information.
bool isRDNA4() const
bool isPolarisOrNewer() const
bool isTeraScale() const
bool isGCNArchitecture() const
bool isArcGPU() const
bool hasVulkanSupport() const
bool isRTXCapable() const
bool isRDNA3OrNewer() const
std::string mesaVersion
uint16_t deviceId
bool isRDNA2OrNewer() const
GPUVendor vendor
std::string driverVersion
GPUGeneration generation
std::string vulkanVersion
std::string model
std::string vendorName
Kernel version and feature support.
std::string distro
std::string fsyncStatus
std::string ntsyncStatus
std::string version
System memory information.
double usagePercent() const
bool is32GBOrMore() const
bool is16GBOrMore() const
bool hasEnoughRAM(uint64_t requiredMB) const
Display/monitor information.
std::string connector
bool is4K() const
bool is1440p() const
bool isHighRefresh() const
Power and thermal information.
PowerProfile profile
std::string activeProfile
Information about an installed runner (Proton/Wine).
std::string version
Storage device information for game paths.
bool isFast() const
std::string filesystem
std::string mountPoint
Complete system capabilities summary.
bool hasHighRefreshMonitor() const
bool hasEnoughRAMFor(uint64_t requiredMB) const
std::vector< RunnerInfo > runners
const MonitorInfo * getPrimaryMonitor() const
StorageType getStorageTypeForPath(const std::string &path) const
SystemReadiness systemReadiness
uint64_t getRecommendedShaderCacheSize() const
bool isOptimalForGaming() const
std::string getRecommendedSyncMethod() const
std::vector< ControllerInfo > controllers
std::vector< StorageInfo > storage
bool hasPlayStationController() const
bool isPerformancePowerProfile() const
std::vector< MonitorInfo > monitors
bool hasOptimalKernelParams() const
System readiness checks for optimal gaming.
std::vector< std::string > warnings() const
Available performance tools and utilities.
bool shouldUseGameMode() const
True iff gamemoderun should actually be invoked.