mirror of
https://github.com/MaSzyna-EU07/StarterNG.git
synced 2026-11-22 00:04:57 +01:00
Show the graphics card beside the levels
Its name and memory, with the other cards in the tooltip. Windows has them in the registry. On Linux the name comes from the driver or pci.ids and the memory from amdgpu or nvidia-smi; without either there is only the name. A card in a processor says shared memory, as what it reports is a share set in the firmware. No rating of the card against the settings: what a ride takes depends on the textures of its scenery and vehicles, which are not known before it starts.
This commit is contained in:
@@ -68,6 +68,7 @@ public sealed class AppServices
|
||||
Tapes = new HaslerTapes(files, paths, log, clock, Timetables,
|
||||
() => Processes.IsRunning(Path.GetFileNameWithoutExtension(SettingsStore.ResolveExecutable())));
|
||||
Gpus = new LinuxGpus(files, environment);
|
||||
GraphicsCards = new GraphicsCards(files, environment, Gpus);
|
||||
Displays = new Displays(files, environment);
|
||||
StartSimulation = new StartSimulation(State, SettingsStore, Library.Vehicles, Executables,
|
||||
files, paths, Processes, random, log, Gpus, environment,
|
||||
@@ -133,6 +134,8 @@ public sealed class AppServices
|
||||
|
||||
public LinuxGpus Gpus { get; }
|
||||
|
||||
public GraphicsCards GraphicsCards { get; }
|
||||
|
||||
public Displays Displays { get; }
|
||||
|
||||
public SettingsPaths SettingsPaths { get; }
|
||||
|
||||
Reference in New Issue
Block a user