U
U
unknownname2016-02-08 23:13:14
Android
unknownname, 2016-02-08 23:13:14

Cause of move twitching on Unity3D?

I have been suffering with a problem for a long time, when I move an object, it twitches intermittently, in small jerks. Found several people with the same problem and no result.
Game 2D, Android
Tried: change Vsync; put physics; use different properties Time.deltaTime\smooth and remove them altogether; tried Dotween; tried on other computers, on other mobile devices; tried both FixedUpdate and Update; I tried Lerp, doing it on coroutines, etc.
Tried on different computers and devices. Tried on an empty project with regular cubes. I also rolled back to version 4.6, everything also twitches.
And the result is still the same. Periodically twitches

transform.Translate(Vector2.right * Time.deltaTime * speed);

// my video
https://www.youtube.com/watch?v=uf3y-JeCklY
// another person
https://www.youtube.com/watch?v=cnST1QzoDw4
Characteristics of the current computer
Intel i5-4670
8 GB RAM
intel hd graphics 4600

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
maaGames, 2016-02-09
@maaGames

I had a similar "sub-pixel" twitching. When the frame size was several times smaller than the screen size and increased with input. At the same time, the camera movements did not occur by an integer number of pixels and were rounded in one direction or the other during rendering. And after the scale, it was already twitching by several pixels, and not by one, and it was very noticeable. "Repaired" by rounding the camera coordinates to whole pixels.
I don't know if this is your problem, but it might help.

A
artembaboglo, 2022-02-26
@artembaboglo

621a6e2796506401632223.png
remove it, and there will be no sharp movements

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question