Photon Fusion 2.0.4

Public Attributes | Properties | List of all members
LagCompensationSettings Class Reference

Settings for lag compensation history. More...

Public Attributes

int CachedStaticCollidersSize = 64
 The size of the cached static colliders (PhysX or Box2D) array of the default Lag Compensation Queries. More...
 
bool Enabled = false
 Indicates if a HitboxManager instance should be added when the NetworkRunner is initialized. More...
 
int HitboxBufferLengthInMs = 200
 Hitbox snapshot history length in milliseconds. More...
 
int HitboxDefaultCapacity = 512
 Hitbox capacity per snapshot. More...
 

Properties

float ExpansionFactor [get]
 Broadphase BVH node expansion factor (default 20%) for leaf nodes, so updates are not too frequent. More...
 
bool Optimize [get]
 Optional: tries to optimize broadphase BVH every update. May be removed in the future. More...
 

Detailed Description

Settings for lag compensation history.

Member Data Documentation

◆ CachedStaticCollidersSize

int CachedStaticCollidersSize = 64

The size of the cached static colliders (PhysX or Box2D) array of the default Lag Compensation Queries.

◆ Enabled

bool Enabled = false

Indicates if a HitboxManager instance should be added when the NetworkRunner is initialized.

◆ HitboxBufferLengthInMs

int HitboxBufferLengthInMs = 200

Hitbox snapshot history length in milliseconds.

◆ HitboxDefaultCapacity

int HitboxDefaultCapacity = 512

Hitbox capacity per snapshot.

Property Documentation

◆ ExpansionFactor

float ExpansionFactor
get

Broadphase BVH node expansion factor (default 20%) for leaf nodes, so updates are not too frequent.

◆ Optimize

bool Optimize
get

Optional: tries to optimize broadphase BVH every update. May be removed in the future.