250k -> 375k triangle limit by default

This commit is contained in:
Loporrit
2025-02-20 17:03:09 +00:00
parent 387aacdd6a
commit 06c2d8b007
2 changed files with 6 additions and 4 deletions

View File

@@ -7,6 +7,6 @@ public class PlayerPerformanceConfig : IMareConfiguration
public bool NotifyAutoPauseDirectPairs { get; set; } = true; public bool NotifyAutoPauseDirectPairs { get; set; } = true;
public bool NotifyAutoPauseGroupPairs { get; set; } = false; public bool NotifyAutoPauseGroupPairs { get; set; } = false;
public int VRAMSizeAutoPauseThresholdMiB { get; set; } = 550; public int VRAMSizeAutoPauseThresholdMiB { get; set; } = 550;
public int TrisAutoPauseThresholdThousands { get; set; } = 250; public int TrisAutoPauseThresholdThousands { get; set; } = 375;
public bool IgnoreDirectPairs { get; set; } = true; public bool IgnoreDirectPairs { get; set; } = true;
} }

View File

@@ -1290,7 +1290,7 @@ public class SettingsUi : WindowMediatorSubscriberBase
ImGui.SameLine(); ImGui.SameLine();
ImGui.Text("(thousand triangles)"); ImGui.Text("(thousand triangles)");
_uiShared.DrawHelpText("When a loading in player and their triangle count exceeds this amount, automatically blocks the synced player." + UiSharedService.TooltipSeparator _uiShared.DrawHelpText("When a loading in player and their triangle count exceeds this amount, automatically blocks the synced player." + UiSharedService.TooltipSeparator
+ "Default: 250 thousand"); + "Default: 375 thousand");
using (ImRaii.Disabled(!_perfUnapplied)) using (ImRaii.Disabled(!_perfUnapplied))
{ {
if (ImGui.Button("Apply Changes Now")) if (ImGui.Button("Apply Changes Now"))
@@ -1367,7 +1367,8 @@ public class SettingsUi : WindowMediatorSubscriberBase
if (_uiShared.IconTextButton(FontAwesomeIcon.Trash, "Delete selected UID")) if (_uiShared.IconTextButton(FontAwesomeIcon.Trash, "Delete selected UID"))
{ {
_serverConfigurationManager.RemoveWhitelistUid(_serverConfigurationManager.Whitelist[_selectedEntry]); _serverConfigurationManager.RemoveWhitelistUid(_serverConfigurationManager.Whitelist[_selectedEntry]);
_selectedEntry = -1; if (_selectedEntry > playerList.Count - 1)
--_selectedEntry;
_playerPerformanceConfigService.Save(); _playerPerformanceConfigService.Save();
recalculatePerformance = true; recalculatePerformance = true;
} }
@@ -1430,7 +1431,8 @@ public class SettingsUi : WindowMediatorSubscriberBase
if (_uiShared.IconTextButton(FontAwesomeIcon.Trash, "Delete selected UID")) if (_uiShared.IconTextButton(FontAwesomeIcon.Trash, "Delete selected UID"))
{ {
_serverConfigurationManager.RemoveBlacklistUid(_serverConfigurationManager.Blacklist[_selectedEntryBlacklist]); _serverConfigurationManager.RemoveBlacklistUid(_serverConfigurationManager.Blacklist[_selectedEntryBlacklist]);
_selectedEntryBlacklist = -1; if (_selectedEntryBlacklist > blacklist.Count - 1)
--_selectedEntryBlacklist;
_playerPerformanceConfigService.Save(); _playerPerformanceConfigService.Save();
recalculatePerformance = true; recalculatePerformance = true;
} }