mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 19:37:23 +01:00
something something performance
This commit is contained in:
parent
6b3d79869b
commit
92182ba0b1
13 changed files with 412 additions and 31 deletions
|
|
@ -0,0 +1,16 @@
|
|||
namespace MareSynchronos.MareConfiguration.Configurations;
|
||||
|
||||
public class PlayerPerformanceConfig : IMareConfiguration
|
||||
{
|
||||
public int Version { get; set; } = 1;
|
||||
public bool ShowPerformanceIndicator { get; set; } = true;
|
||||
public bool WarnOnExceedingThresholds { get; set; } = true;
|
||||
public bool WarnOnPreferredPermissionsExceedingThresholds { get; set; } = false;
|
||||
public int VRAMSizeWarningThresholdMiB { get; set; } = 375;
|
||||
public int TrisWarningThresholdThousands { get; set; } = 165;
|
||||
public bool AutoPausePlayersExceedingThresholds { get; set; } = false;
|
||||
public bool AutoPausePlayersWithPreferredPermissionsExceedingThresholds { get; set; } = false;
|
||||
public int VRAMSizeAutoPauseThresholdMiB { get; set; } = 550;
|
||||
public int TrisAutoPauseThresholdThousands { get; set; } = 250;
|
||||
public List<string> UIDsToIgnore { get; set; } = new();
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
using MareSynchronos.MareConfiguration.Configurations;
|
||||
|
||||
namespace MareSynchronos.MareConfiguration;
|
||||
|
||||
public class PlayerPerformanceConfigService : ConfigurationServiceBase<PlayerPerformanceConfig>
|
||||
{
|
||||
public const string ConfigName = "playerperformance.json";
|
||||
public PlayerPerformanceConfigService(string configDir) : base(configDir) { }
|
||||
|
||||
protected override string ConfigurationName => ConfigName;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue