Skip to content

Commit 3c0b06a

Browse files
committed
bunch of changes
1 parent c22ccd9 commit 3c0b06a

File tree

8 files changed

+908
-799
lines changed

8 files changed

+908
-799
lines changed

Bloxstrap/JsonManager.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ public void LoadProfile(string? name, bool? clearFlags)
135135
if (string.IsNullOrEmpty(name))
136136
return;
137137

138-
139138
try
140139
{
141140
if (!Directory.Exists(BaseDir))
@@ -163,6 +162,10 @@ public void LoadProfile(string? name, bool? clearFlags)
163162
if (settings is null)
164163
throw new ArgumentNullException("Deserialization returned null");
165164

165+
// Suspend undo snapshots during load
166+
App.FastFlags.suspendUndoSnapshot = true;
167+
App.FastFlags.SaveUndoSnapshot(); // snapshot before applying profile
168+
166169
if (clearFlags == true)
167170
{
168171
Prop = settings;
@@ -179,6 +182,8 @@ public void LoadProfile(string? name, bool? clearFlags)
179182
}
180183
}
181184

185+
App.FastFlags.suspendUndoSnapshot = false;
186+
182187
App.FastFlags.Save();
183188
}
184189
catch (Exception ex)
@@ -187,6 +192,7 @@ public void LoadProfile(string? name, bool? clearFlags)
187192
}
188193
}
189194

195+
190196
public void LoadPresetProfile(string? name, bool? clearFlags)
191197
{
192198
string LOGGER_STRING = "LoadProfile::Profiles";
@@ -239,6 +245,9 @@ public void LoadPresetProfile(string? name, bool? clearFlags)
239245
if (settings is null)
240246
throw new ArgumentNullException("Deserialization returned null");
241247

248+
App.FastFlags.suspendUndoSnapshot = true;
249+
App.FastFlags.SaveUndoSnapshot();
250+
242251
if (clearFlags == true)
243252
{
244253
Prop = settings;
@@ -255,6 +264,8 @@ public void LoadPresetProfile(string? name, bool? clearFlags)
255264
}
256265
}
257266

267+
App.FastFlags.suspendUndoSnapshot = false;
268+
258269
App.FastFlags.Save();
259270
}
260271
catch (Exception ex)

Bloxstrap/Resources/PresetFlags/5070's Latency Pack V28

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,18 @@
1212
"DFFlagReplicateCreateToPlayer": "True",
1313
"DFFlagMergeFakeInputEvents3": "True",
1414

15-
"DFFlagOnlyDecrementCompletenessIfReplicating": "False",
16-
"DFFlagTextureQualityOverrideEnabled": "False",
17-
1815
"FFlagDebugNextGenReplicatorEnabledWriteCFrameColor": "True",
1916
"FFlagPreComputeAcceleratorArrayForSharingTimeCurve": "True",
20-
"FFlagCameraHeartbeatInterpolationFastExit": "True",
2117
"FFlagKeyframeSequenceUseRuntimeSyncPrims": "True",
18+
"FFlagAnimationCurveDenseCacheEnabled5": "True",
2219
"FFlagHumanoidStateUseRuntimeSyncPrims": "True",
20+
"FFlagNextGenReplicatorEnabledWrite4": "True",
2321
"FFlagDataModelUseRuntimeSyncPrims": "True",
2422
"FFlagDebugNextGenRepAttributeRep": "True",
25-
"FFlagLargeReplicatorEnabled6": "True",
23+
"FFlagOptimizeCFrameUpdatesIC3": "True",
2624
"FFlagLuaMenuPerfImprovements": "True",
25+
"FFlagOptimizeCFrameUpdates4": "True",
2726
"FFlagSimDcdDeltaReplication": "True",
28-
"FFlagLargeReplicatorWrite5": "True",
29-
"FFlagLargeReplicatorRead5": "True",
3027
"FFlagSimDcdRefactorDelta3": "True",
3128
"FFlagSortKeyOptimization": "True",
3229
"FFlagFasterPreciseTime4": "True",
@@ -115,9 +112,8 @@
115112
"DFIntClientPacketMaxDelayMs": "1",
116113
"DFIntHttpBatchApi_minWaitMs": "5",
117114
"DFIntRakNetNakResendDelayMs": "1",
118-
"DFIntTextureQualityOverride": "0",
119115
"DFIntRakNetSelectTimeoutMs": "1",
120-
"DFIntS2PhysicsSenderRate": "512",
116+
"DFIntS2PhysicsSenderRate": "256",
121117
"DFIntSignalRCoreTimerMs": "50",
122118
"DFIntMaxFrameBufferSize": "4",
123119
"DFIntRakNetLoopMs": "1",

Bloxstrap/Resources/PresetFlags/Mahorga's Default Graphics V3

Lines changed: 270 additions & 225 deletions
Large diffs are not rendered by default.

Bloxstrap/Resources/PresetFlags/Mahorga's Low Graphics V8

Lines changed: 297 additions & 272 deletions
Large diffs are not rendered by default.

Bloxstrap/Resources/PresetFlags/Mahorga's Trash Graphics V14

Lines changed: 319 additions & 287 deletions
Large diffs are not rendered by default.

Bloxstrap/UI/Elements/Settings/MainWindow.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
IsHitTestVisible="True">
131131
<Border HorizontalAlignment="Center"
132132
VerticalAlignment="Center"
133-
Width="220"
133+
Width="270"
134134
Height="160"
135135
Background="#59000000"
136136
CornerRadius="12"

Bloxstrap/UI/ViewModels/Settings/FastFlagsViewModel.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,11 +220,11 @@ public bool DisableWebview2Telemetry
220220

221221
public bool BlockTencent
222222
{
223-
get => App.FastFlags?.GetPreset("Telemetry.Tencent1") == "/tencent/";
223+
get => App.FastFlags?.GetPreset("Telemetry.Tencent1") == "null";
224224
set
225225
{
226-
App.FastFlags.SetPreset("Telemetry.Tencent1", value ? "/tencent/" : null);
227-
App.FastFlags.SetPreset("Telemetry.Tencent2", value ? "/tencent/" : null);
226+
App.FastFlags.SetPreset("Telemetry.Tencent1", value ? "null" : null);
227+
App.FastFlags.SetPreset("Telemetry.Tencent2", value ? "null" : null);
228228
App.FastFlags.SetPreset("Telemetry.Tencent3", value ? "https://www.gov.cn" : null);
229229
App.FastFlags.SetPreset("Telemetry.Tencent4", value ? "https://www.gov.cn" : null);
230230
App.FastFlags.SetPreset("Telemetry.Tencent5", value ? "False" : null);

wpfui

0 commit comments

Comments
 (0)