Delta time is the time it between rendered frames. You can use delta time to get frame rate independent behavior.
The reason you see so many tutorials is because it’s extremely useful. Without delta time you could have inconsistencies just by how fast the game is running. For example: If you move the character 5px
ever _process call, then you’ll move 150px (5px * 30fps = 150 pixels moved)
in one second in 30fps. However, if your computer is rendering at 60fps, then you’ll move 300px (5px * 60fps = 300 pixels moved)
instead, even though the code hasn’t changed at all. If your using 150px * delta time
, then no matter how many frames your computer is rendering at, it will always be 150px per second.
(Note: px = pixels, FPS = frames per second)
Here’s the wiki link, which (probably) explains it better than I did.