From 06c2d8b0072e18fd7e777c57cb6f396b86c09597 Mon Sep 17 00:00:00 2001 From: Loporrit <141286461+loporrit@users.noreply.github.com> Date: Thu, 20 Feb 2025 17:03:09 +0000 Subject: [PATCH] 250k -> 375k triangle limit by default --- .../Configurations/PlayerPerformanceConfig.cs | 2 +- MareSynchronos/UI/SettingsUi.cs | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/MareSynchronos/MareConfiguration/Configurations/PlayerPerformanceConfig.cs b/MareSynchronos/MareConfiguration/Configurations/PlayerPerformanceConfig.cs index 599910a..2a8edb5 100644 --- a/MareSynchronos/MareConfiguration/Configurations/PlayerPerformanceConfig.cs +++ b/MareSynchronos/MareConfiguration/Configurations/PlayerPerformanceConfig.cs @@ -7,6 +7,6 @@ public class PlayerPerformanceConfig : IMareConfiguration public bool NotifyAutoPauseDirectPairs { get; set; } = true; public bool NotifyAutoPauseGroupPairs { get; set; } = false; public int VRAMSizeAutoPauseThresholdMiB { get; set; } = 550; - public int TrisAutoPauseThresholdThousands { get; set; } = 250; + public int TrisAutoPauseThresholdThousands { get; set; } = 375; public bool IgnoreDirectPairs { get; set; } = true; } \ No newline at end of file diff --git a/MareSynchronos/UI/SettingsUi.cs b/MareSynchronos/UI/SettingsUi.cs index 80e59a6..f3a2cd3 100644 --- a/MareSynchronos/UI/SettingsUi.cs +++ b/MareSynchronos/UI/SettingsUi.cs @@ -1290,7 +1290,7 @@ public class SettingsUi : WindowMediatorSubscriberBase ImGui.SameLine(); 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 - + "Default: 250 thousand"); + + "Default: 375 thousand"); using (ImRaii.Disabled(!_perfUnapplied)) { if (ImGui.Button("Apply Changes Now")) @@ -1367,7 +1367,8 @@ public class SettingsUi : WindowMediatorSubscriberBase if (_uiShared.IconTextButton(FontAwesomeIcon.Trash, "Delete selected UID")) { _serverConfigurationManager.RemoveWhitelistUid(_serverConfigurationManager.Whitelist[_selectedEntry]); - _selectedEntry = -1; + if (_selectedEntry > playerList.Count - 1) + --_selectedEntry; _playerPerformanceConfigService.Save(); recalculatePerformance = true; } @@ -1430,7 +1431,8 @@ public class SettingsUi : WindowMediatorSubscriberBase if (_uiShared.IconTextButton(FontAwesomeIcon.Trash, "Delete selected UID")) { _serverConfigurationManager.RemoveBlacklistUid(_serverConfigurationManager.Blacklist[_selectedEntryBlacklist]); - _selectedEntryBlacklist = -1; + if (_selectedEntryBlacklist > blacklist.Count - 1) + --_selectedEntryBlacklist; _playerPerformanceConfigService.Save(); recalculatePerformance = true; }