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:
Meta Vens 2026-12-05 10:48:54 +01:00
commit fcb91edb0d
16 changed files with 574 additions and 143 deletions

View file

@ -367,7 +367,7 @@ public partial class ArenaRenderer : Node3D
var state = session.ViewState;
_pomDecals.ConsumeEvents(session, events, stepDt, ResolveEntityVisual);
_particles.ConsumeEvents(events, state, camPos, hasCam, sampleGroundTint);
_particles.ConsumeEvents(session, events, camPos, hasCam, sampleGroundTint);
for (int i = 0; i < footsteps.Count; i++)
{
@ -595,7 +595,7 @@ public partial class ArenaRenderer : Node3D
vis.Visual.Root.Transform = new Transform3D(new Basis(q), pos);
float distSq = hasCam ? pos.DistanceSquaredTo(camPos) : 0f;
bool castShadows = !hasCam || c.Id == localId || distSq <= 75f * 75f;
bool castShadows = !hasCam || c.Id == localId || distSq <= 55f * 55f;
bool useStaticLod = hasCam && c.Id != localId && !vis.Visual.HasAnyStrippedCell &&
(vis.Visual.IsStaticLod ? distSq > 64f * 64f : distSq > 68f * 68f);
vis.Visual.SetLodState(useStaticLod, castShadows);
@ -698,7 +698,7 @@ public partial class ArenaRenderer : Node3D
if (hasCam)
{
float distSq = specPos.DistanceSquaredTo(camPos);
castShadows = distSq <= 70f * 70f;
castShadows = distSq <= 55f * 55f;
if (!vis.Visual.HasAnyStrippedCell)
{
useStaticLod = vis.Visual.IsStaticLod ? distSq > 50f * 50f : distSq > 55f * 55f;
@ -1207,7 +1207,7 @@ public partial class ArenaRenderer : Node3D
float nextDust = _tireDustNextTime.GetValueOrDefault(key);
if (_vfxClock >= nextDust)
{
_tireDustNextTime[key] = _vfxClock + 0.07f; // ~14 Hz
_tireDustNextTime[key] = _vfxClock + 0.09f; // ~11 Hz
float sinY = MathF.Sin(c.Yaw);
float cosY = MathF.Cos(c.Yaw);
Vector3 rearPos = pos - new Vector3(sinY, 0f, cosY) * (c.Grid.Spec.HalfLength * 0.72f);
@ -1228,7 +1228,7 @@ public partial class ArenaRenderer : Node3D
float nextVent = _thermalVentNextTime.GetValueOrDefault(key);
if (_vfxClock >= nextVent)
{
_thermalVentNextTime[key] = _vfxClock + 0.10f; // 10 Hz
_thermalVentNextTime[key] = _vfxClock + 0.13f; // ~7.7 Hz
Vector3 ventPos = ResolveHotAnchorWorld(av?.Visual, c.Grid, pos, c.Grid.Spec.HalfHeight);
_particles.EmitThermalVent(ventPos, thermalRatio, camPos, hasCam);
}
@ -1239,7 +1239,7 @@ public partial class ArenaRenderer : Node3D
float nextSmoke = _damageSmokeNextTime.GetValueOrDefault(key);
if (_vfxClock >= nextSmoke)
{
_damageSmokeNextTime[key] = _vfxClock + 0.10f; // 10 Hz
_damageSmokeNextTime[key] = _vfxClock + 0.13f; // ~7.7 Hz
Vector3 dmgPos = pos + new Vector3(0f, c.Grid.Spec.HalfHeight * 0.6f, 0f);
_particles.EmitDamageSmokeAndFire(dmgPos, coreHpRatio, camPos, hasCam);
}