13. C++ Fixed Delta Time Update Loop Celeste Clone

  Рет қаралды 2,203

Cakez

Cakez

Күн бұрын

Пікірлер: 5
@Cakez77
@Cakez77 Жыл бұрын
In this tutorial I will show you how to get delta time in C++ and how to implement a Fixed Update Loop.
@NeZversSounds
@NeZversSounds Жыл бұрын
I didn't catch one thing. Theoretically if game receives a lag, causing delta time 2x bigger than simulation time. I didn't notice handling of such situation where you would need to simulate more than once or lerp overshooting.
@x_vye
@x_vye Жыл бұрын
Normal dt should not be capped at a fixed timestep. To failsafe the lerp overshooting, you can implement a clamped lerp function between 0 & 1.
@Cakez77
@Cakez77 Жыл бұрын
Yes, very good question and I should have talked about it. If you have more than twice the delta time during a Lagg, then we update the game twice before rendering. But as stated above, you can also implement the clamped lerp. In this case it wont happen tho.
14. C++ AABB Collision and Movement - Celeste Clone
18:36
Dear Game Developers, Stop Messing This Up!
22:19
Jonas Tyroller
Рет қаралды 721 М.
🕊️Valera🕊️
00:34
DO$HIK
Рет қаралды 12 МЛН
Sigma baby, you've conquered soap! 😲😮‍💨 LeoNata family #shorts
00:37
Я сделала самое маленькое в мире мороженое!
00:43
Кушать Хочу
Рет қаралды 4,9 МЛН
Harder Than It Seems? 5 Minute Timer in C++
20:10
The Cherno
Рет қаралды 186 М.
Unity Addict Tries Godot for the First Time
16:12
The Great Expanse
Рет қаралды 2,4 М.
Making a Game With C++ and SDL2
5:34
Goodgis
Рет қаралды 638 М.
How to Code (almost) Any Feature
9:48
DaFluffyPotato
Рет қаралды 690 М.
Understanding framerate independence and deltatime
29:22
Clear Code
Рет қаралды 41 М.
Blueprints vs. C++: How They Fit Together and Why You Should Use Both
47:14
Making My Own Programming Language and Coding a Game in It
10:19
AstroSam
Рет қаралды 1,3 МЛН
MAKING A GAME IN 10 MINUTES!!
13:06
Brackeys
Рет қаралды 2 МЛН
🕊️Valera🕊️
00:34
DO$HIK
Рет қаралды 12 МЛН