0 votes

Hi, I'm working on a fast-paced Platformer and I'm using a Camera2D to scroll my level. The problem is that scrolling/movement of the camera causes a lot of screen-tearing. I tried to enable V-sync but apparently Godot hasn't got an option for that yet. I also tried to force a framerate of 60 but the problem remains. Any help will not go unappreciated.

in Engine by (44 points)

1 Answer

+1 vote
Best answer

You can enable V-sync in Project Settings, under the Window category.

You can also enable V-sync with the following code:

OS.vsync_enabled = true
by (27,897 points)
selected by

I fixed the issue by actually disabling it... lol I had no idea is was enabled by default.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.