'Unity laggy camera on webgl
I have a problem with camera movement that is laggy only when I upload the webgl build on itch.io. Otherwise the pc build and while I'm testing in editor, the camera doesn't have any lag.
private void LateUpdate()
{
Camera.main.transform.position = Vector3.Lerp(Camera.main.transform.position, _cameraPosToGo, _cameraSpeed * Time.deltaTime);
}
Solution 1:[1]
Try changing it is FixedUpdate() instead of LateUpdate()
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Terrell-byte |
