Direct2D Tutorial 6: Real Time Game Loop @WhatsACreel
Direct2D Tutorial 6: Real Time Game Loop  @WhatsACreel
Uploaded February 2015 | Updated September 2026, 2 weeks ago
In this video we'll look at creating a real-time game loop. The loop itself consists of two method calls: Update() and Render().

At the moment, we don't have the infrastructure in place to make these method calls. i.e. there's no game objects, no level classes or anything like that. So today we'll just render a little bouncy ball in real-time. We won't use method calls to Update and Render, but we'll change all of this shortly when we make the backbone to a game engine.

It's interesting: What looks like a bouncy ball is actually very simple, and it's actually nothing like real-world physics. The more we get into rendering graphics and physics, the more apparent it becomes that we're taking some serious liberties! Matter of fact, there's no chance a modern computer could hope to simulate real physics, let alone render it on the screen. So what do programmers do...?

They cheat till the cows come home, and the player has no idea! That's not a bouncy ball at all, that's just a float called "y" being rendered to the screen!


Become a patron and support What's a Creel programming vids on Patreon:
patreon.com/whatsacreel

FaceBook:
facebook.com/pages/WhatsaCreel/167732956665435
Direct2D Tutorial 6: Real Time Game LoopFixed Point Arithmetic 1: Intro to Fixed PointC++ Tutorial 5: While and Do While LoopsC++ Tutorial 10: Pointers Explained (Linked Lists vs Arrays Example)Modern x64 Assembly 16: Basic SIMD Floating Point Arithmeticx64 Assembly Tutorial 54: Floating Point Sign Masks (SIMD Floating Point ASM Examples)Agner Fogs VCL (Vector Class Library Installation and Overview)Why is Radix Sort so Fast? Part 3 Comparison and Code, Radix Sort vs QuickSortC++ Tutorial 13: Passing by Reference vs Pointerx64 Assembly Tutorial 60: C++ Image Processing Negative Image, Negate ColorsSet Associative Caches 1: What is a Set Associative Cache?NVIDIA CUDA Tutorial 7: An Embarrassingly Parallel Algorithm 2
Creel |

Direct2D Tutorial 6: Real Time Game Loop

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER