-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KinematicBody2D (Ball) Stutters and Jumps even when only object in scene. #17246
Comments
I cannot see the code or project settings because the examples are compiled, in any case, looks like a duplicate of the old #2043 |
Yeah it seems to be the same problem, unfortunately I couldn't find that topic when I searched for KinematicBody2D or I missed it. I turned off vsync in the project settings, that helped, so it's ok 90% of the time. I've also read that it could maybe be fixed in Godot 3.1. Any release date for it yet? Here is the project, I hope one can read the code now. (If it is still of interest) Thanks |
No ETA for 3.1, and not sure if the work on the physics frame interpolation has started yet (and there are other camera improvements too that may help on this). Oh, and try adding a background image, sometimes the effects is seen worse over the clear color than with a background texture. |
I get jitter with a fairly small example: var velocity = Vector2(0,0) func _ready(): func _physics_process(delta):
` I recorded a video with OBS and on most frames, my "Player" node moves the same distance, but on a few frames, there is no movement. Presumably this is because sometimes two frames get rendered between two calls to _process I guess. I've set the physics frame rate to 120 but it didn't help. So yeah, seems like interpolation is needed. :) |
Duplicate of #10388. Try installing and enabling lawnjelly's smoothing add-on to get physics interpolation in your project. |
Godot version: 3.0.1
OS/device including version: Windows 10 Home, Nvidia GTX980 (Driver Ver. 391.01)
**Issue description: KinematicBody2D
I just have a ball bouncing around, no other graphics and the ball stutters and sometimes jumps forward in the direction it is moving. Is this an engine bug? I am using KinematicBody2D, Sprite and CollisionShape2D (Circle). Doesn't seem to matter whether I am using #_physics_process(delta) or _process(delta).
I did also code it directly with position += direction * speed * delta, and it was better, but still jumping, but less stuttering. (Compared to move_and_slide which I have now(is worse))
PS. This is my first time to do this, so please contact me if you need more info, Thanks DS**
**Steps to reproduce:
Please run code, or executable.
See if the ball is stuttering and occasionally jumping in the movement direction, happens quite often, jumping is smaller or bigger but is more arbitrary, should happen within a minute**
**Minimal reproduction project:
Ball Performance Test Project.zip
test ball performance executable.zip**
The text was updated successfully, but these errors were encountered: