Page 2 of 2
Re: The use of dt
Posted: Tue Mar 03, 2015 6:45 am
by micha
Bindie wrote:Hey, I haven't implemented dt to every equation yet. If I think I got a perfect timing for example a laser timer, without dt as a factor, do I have to recalibrate that perfect timing when I implement dt?
Yes you have to. Once you put in dt everywhere, the game will run at a different speed. However, things that happen synchronous without dt will also do so with dt. So all you have to do is adapt the overall speed.
In most cases you will have 60 frames per second. So if you insert (60*dt) everywhere, then the overall game speed should stay about the same.
Re: The use of dt
Posted: Tue Mar 03, 2015 5:02 pm
by kikito
Bindie wrote:Hey, I haven't implemented dt to every equation yet. If I think I got a perfect timing for example a laser timer, without dt as a factor, do I have to recalibrate that perfect timing when I implement dt?
It might perfect
in your computer, but without dt it will run faster or slower in others. Using dt is what makes it perfect
everywhere.
Re: The use of dt
Posted: Wed Mar 04, 2015 8:36 am
by Jasoco
It's not hard to use dt. I don't understand why so many people try to avoid it. It's a super simple concept.
Re: The use of dt
Posted: Wed Mar 04, 2015 9:02 am
by s-ol
Jasoco wrote:It's not hard to use dt. I don't understand why so many people try to avoid it. It's a super simple concept.
plus, if you start with it right away, it's not even harder than not using it.