62 - Net Update Frequency

This commit is contained in:
Kingsmedia 2022-05-04 14:27:45 +02:00
parent 3b41ab1f9a
commit ab42efa036
4 changed files with 5 additions and 0 deletions

View File

@ -56,3 +56,6 @@ bInitServerOnClient=true
[/Script/OnlineSubsystemSteam.SteamNetDriver]
NetConnectionClassName="OnlineSubsystemSteam.SteamNetConnection"
[/Script/OnlineSubsystemUtils.IpNetDriver]
NetServerMaxTickRate=60

View File

@ -41,6 +41,8 @@ ABlasterCharacter::ABlasterCharacter()
GetMesh()->SetCollisionResponseToChannel(ECollisionChannel::ECC_Camera, ECollisionResponse::ECR_Ignore);
TurningInPlace = ETurningInPlace::ETIP_NotTurning;
NetUpdateFrequency = 66.f;
MinNetUpdateFrequency = 33.f;
}
void ABlasterCharacter::GetLifetimeReplicatedProps(TArray<FLifetimeProperty>& OutLifetimeProps) const