Any lag spikes cause camera jitters in Play Solo (Studio)

I recorded a video of my friend’s studio session. Due to some polling plugin or whatever, (the lag source does NOT matter in this case), their render rate gets brought down every few seconds and their camera jitters. You can see in the video right there, that the camera is tied to render rate and snaps to weird angles while trying to move the mouse normally.

No external scripts have been placed into the game as far as I know, and this issue happens in the case of any lag spike.

The video above showcases an artificial lag script I have made using os.clock() with lag spikes every 2 seconds (lasting 1 second). You can see very clearly that as the game lags more, my camera moves further away. This is highly hardware-dependent and some devices can lag worse than this, as showcased on the video further up.

Conclusion: The CameraModule is tied to render rate and does not appear to function properly in the cases of lag spikes. Further investigation of the scripts finds outdated code using tick(), deltatimes that make the problem worse..

Expected behavior

The camera is independent from render rate (as is with the new smooth updates to the 3D View camera) and does not have these problems happening in the first place. This is a genuine annoyance to anyone who has to test games on a computer that they’re unfamiliar with or has worse specs.

3 Likes

Hey There!

Thanks for bringing this to our attention.
A ticket was filed, but we need more information about it.

Is this issue still happening at your end?
If so, please provide a Log File and a Repro Placefile so we can investigate it right away!

If you need assistance or info on how to get these files, please refer to the How to post a Bug Report - Bug Reports - Developer Forum | Roblox

Thanks for understanding!
Have A Nice Day!

Hi. Thanks for reaching out.

Below is attached a video, and a .rbxl file of a purposefully laggy place to emulate the conditions that cause this bug.

How to reproduce:

  1. Open the place file. (You can modify the lag settings in the lag script provided in StarterPlayerScripts)
  2. Start a playtest.
  3. Move your camera around, alternating between facing the big laggy cube I placed and the other side of the baseplate.
  4. Notice the camera being jittery.

LagPlace.rbxl (65.7 KB)

If that also helps, here is a MicroProfiler dump provided via file sharing service Catbox:
https://files.catbox.moe/vs2sng.html

The dump has been captured using 2 mixed scenarios: looking at the cube, and looking away from the cube, with an interval-based lag script running the entire time in the background (that is why you can see delaying threads)

Bump. This issue is impacting me actively and is preventing me from working properly.