Fix all 7 Cut 5d Soul findings: GL3 Sion perf >=57fps, PVS death gating, crater dedupe, hit-marker filter, loadout baseline, remote dust yaw/speed, distance-gated death trauma
This commit is contained in:
parent
323c02cf8d
commit
fcb91edb0d
16 changed files with 574 additions and 143 deletions
|
|
@ -415,9 +415,13 @@ public partial class Main : Node3D
|
|||
_footsteps.Clear();
|
||||
_frameEvents.Clear();
|
||||
_frameFootsteps.Clear();
|
||||
_audio.ClearAll();
|
||||
_audio.ResetForSession(_session);
|
||||
_hud.ResetFeedback();
|
||||
}
|
||||
else
|
||||
{
|
||||
_audio.ResetForSession(_session);
|
||||
}
|
||||
|
||||
_camera.Far = _mapKind == ArenaMapKind.Sion ? 4200f : 1800f;
|
||||
ApplyEnvironmentForMap(_mapKind);
|
||||
|
|
@ -442,6 +446,12 @@ public partial class Main : Node3D
|
|||
_terrain.UpdateTileLod(_camera.GlobalPosition);
|
||||
}
|
||||
|
||||
var localStart = _session.LocalContender;
|
||||
Vector3 startVec = new(localStart.X, localStart.Y, localStart.Z);
|
||||
Vector3 startFwd = new(MathF.Sin(localStart.Yaw), 0f, MathF.Cos(localStart.Yaw));
|
||||
_arena.Particles.PrewarmFlashLights(startVec, startFwd);
|
||||
_arena.PomDecals.PrewarmShader(startVec);
|
||||
|
||||
_hud.Sync(_session);
|
||||
SyncMouseMode();
|
||||
}
|
||||
|
|
@ -826,7 +836,7 @@ public partial class Main : Node3D
|
|||
|
||||
var local = _session.LocalContender;
|
||||
var localPos = new System.Numerics.Vector3(local.X, local.Y, local.Z);
|
||||
_camJuice.ConsumeEvents(_frameEvents, _session.LocalContenderId, localPos);
|
||||
_camJuice.ConsumeEvents(_frameEvents, _session.LocalContenderId, localPos, _session);
|
||||
_camJuice.ConsumeFootsteps(_frameFootsteps, _session.LocalContenderId);
|
||||
_camJuice.Update(dt, local.Speed, local.Grid.Spec.IsVtol);
|
||||
}
|
||||
|
|
@ -1374,7 +1384,7 @@ public partial class Main : Node3D
|
|||
{
|
||||
_sun.LightColor = new Color(1.0f, 0.95f, 0.87f);
|
||||
_sun.LightEnergy = 1.25f;
|
||||
_sun.DirectionalShadowMaxDistance = 160f;
|
||||
_sun.DirectionalShadowMaxDistance = 120f;
|
||||
_sun.RotationDegrees = new Vector3(-42f, 28f, 0f);
|
||||
|
||||
_skyMat.SkyTopColor = new Color(0.18f, 0.36f, 0.62f);
|
||||
|
|
|
|||
Loading…
Reference in a new issue