Hi, I’ve been struggling with finding a solution to this for a while. The platforms don’t seem to move smoothly across the screen.
Here is what’s implemented so far:
This will be an infinite runner type game.
The character moves and the camera follows the player.
The floor tiles are generated in an object pool and repooled once they are off screen.
Each tile has colliders on them.
Sorry I didn’t know how much detail I needed to give.
vsync is turned on
it is currently in update and not fixed update and is using SmoothDamp
I believe the camera is moving smoothly because it is following the character and there is no stuttering seen on the character but I could be wrong.
I have ran it on an android phone and an iPhone and I see the same stuttering
One theory I have is that the character is stuttering so since the camera is following the player, then the platforms look like it is stuttering. However, I have no idea why the character would be stuttering because it just has a velocity moving across the screen with no animations. Any ideas as to why the character could be stuttering?
When you say “velocity” that sounds like you’re using physics, which is FixedUpdate. FixedUpdate doesn’t sync with the framerate, although you can smooth things out by turning on interpolation.
The character is using physics and the character’s updates are in FixedUpdate. My character is also set to interpolate. My camera is still currently in Update. When I change the camera to FixedUpdate, the character is stuttering a lot. Here is the camera update if it helps: