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
|
|
@ -14,7 +14,7 @@ namespace RustToDust.Client;
|
|||
/// </summary>
|
||||
public partial class PomDecalPool : Node3D
|
||||
{
|
||||
public const int MaxDecals = 512;
|
||||
public const int MaxDecals = 256;
|
||||
private const float HeatCoolDuration = 3.5f;
|
||||
private const float DetachFadeDuration = 0.35f;
|
||||
private const float EndFadeDuration = 2.0f;
|
||||
|
|
@ -148,6 +148,28 @@ public partial class PomDecalPool : Node3D
|
|||
UpdateAndCommit(dt);
|
||||
}
|
||||
|
||||
public void PrewarmShader(Vector3 nearPos)
|
||||
{
|
||||
EnsureInitialized();
|
||||
if (ActiveCount > 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
AllocateSlot(new DecalSlot
|
||||
{
|
||||
Active = true,
|
||||
Age = 0f,
|
||||
Lifetime = 0.04f,
|
||||
TileIndex = 12f,
|
||||
InitialHeat = 0f,
|
||||
BaseOpacity = 0.03f,
|
||||
DepthScale = 0.02f,
|
||||
WorldXform = BuildSurfaceTransform(nearPos, Vector3.Up, 0.05f, 0f),
|
||||
DetachedFadeRemaining = -1f
|
||||
});
|
||||
UpdateAndCommit(0f);
|
||||
}
|
||||
|
||||
public void StampTestDecal(
|
||||
Vector3 worldPos,
|
||||
Vector3 worldNormal,
|
||||
|
|
|
|||
Loading…
Reference in a new issue