Why getting started tutorial don't use variable_dt option?

I’ve started trying things in Defold a week ago and I’m still trying to finish tutorial. I’ve noticed that the “variable_dt” option is turned off by default and more importantly ground.script which is responsible for moving floor don’t use dt variable at all, while hero.script use it. Why?

When I ran the project first time it was extremly fast. I read the forum and found out that I need to turn on VSync to make it run at normal speed. I didn’t like that the speed depends on vsync, so I rewrite one line of code in ground.script to make use of dt variable, adjust the speed property from 6 to 360, turn on “variable_dt” option in project settings and the game rans pretty well. So I felt a little bit confused and looked at forum for answer but couldn’t find anything.

P.S. Sorry if my words are hard to understand, I’m not a native English speaker and don’t have a lot of experience to express my thoughts in English.

1 Like

This is an excellent observation! I wonder why no one has noticed this before?

It should of course use dt just like you did yourself. @sicher, we should update the tutorial.

2 Likes