Godot: Consisted stuttering / frame drops every few seconds

Created on 16 May 2018  路  5Comments  路  Source: godotengine/godot

Godot 3.0.2
Intel HD Graphics 630 and NVIDIA GeForce GTX 1050
Created a project with just a slowly rotating quad with a flat shader:

capture

If you follow a corner of the quad visually, you'll notice a stutter every once a few seconds. Printing out the frame rate this appears to correspond to delta times above 17ms. While 17ms might be tolerable, examining the data further shows drops to 33ms every 30s or so:

OS.get_ms_time - delta in _process

2300 - 0.133333
2397 - 0.133333
7082 - 0.018959
15290 - 0.03416
31369 - 0.076607
43466 - 0.018043
62398 - 0.0334
65795 - 0.033267
113320 - 0.033276
115370 - 0.018379

Here's the zip:
Glitching Project.zip

This alone keeps me from migrating from 2.1, which does not appear to have the same issue with an equivalent project. Also, it does not appear to be my machine specific as I've seen it been mentioned at least 3 times before posting this.

bug core

Most helpful comment

Jittering has been mentionned for years

Makes it a problem worth solving then.

@Calinou the fix did in fact fix the jittering! had both .exes running side by side and the difference was very clear, supported by the new build not printing any values.

This is the version used (would be nice to be able to copy-paste the version):
capture

This along with gles 2.0 will make 3.1 leave no reason to stay on 2.1. Thanks.

All 5 comments

Jittering has been mentionned for years https://github.com/godotengine/godot/issues/2043
Also:

  • Make sure you aren't running the game with remote scene tree active
  • Try with an exported game

I tested in editor still, on a non-laptop computer, and I didn't notice stutters, at least not as frequently:

...
31204 - 0.017026
31387 - 0.099401
32205 - 0.017101
...
43687 - 0.017172
43815 - 0.02862
44004 - 0.017051
...

A fix for jittering was recently merged in the master branch. Can you please test with a recent Git master build (by compiling from source, or downloading a build from this page)? Thanks in advance :smiley:

Jittering has been mentionned for years

Makes it a problem worth solving then.

@Calinou the fix did in fact fix the jittering! had both .exes running side by side and the difference was very clear, supported by the new build not printing any values.

This is the version used (would be nice to be able to copy-paste the version):
capture

This along with gles 2.0 will make 3.1 leave no reason to stay on 2.1. Thanks.

Could be closed I guess? <3

Sounds like it :)

Was this page helpful?
0 / 5 - 0 ratings