In the project of my HiWi job, the lag of camera translation and rotation is highly noticeable even if I move it slowly. It delayed more than 3 frames visually. Here are 4 places need to be check if the same problem happened to you.
- Don’t get the transformation from
AActor::GetActorLocatino()
andAPlayerController::GetControlRotation()
. Instead, get location and rotation fromAPlayerCameraManager::GetCameraCachePOV().Location/Rotation
. - Change the tick group, which the getter of transformation is called from, to
Post Update Work
instead ofDuring Physics
- Set CVar
r.OneFrameThreadLag
to 0. You can do this in theBeginPlay
event.
More information: