aboutsummaryrefslogtreecommitdiff
path: root/design.tex
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-10-23 21:17:26 +0200
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-10-23 21:17:26 +0200
commitda846dea2906ae2395ebc6351cae1ca8f8d3313b (patch)
tree59821bffd24c2f60ce557cbcb0f8ecf9d693c7a0 /design.tex
parente905ec4806b815c59fae1d774b3ec7050b1b322f (diff)
made changes to introduction gameloop
Diffstat (limited to 'design.tex')
-rw-r--r--design.tex9
1 files changed, 7 insertions, 2 deletions
diff --git a/design.tex b/design.tex
index 587174f..4642f0c 100644
--- a/design.tex
+++ b/design.tex
@@ -28,10 +28,15 @@ workflows.
\subsubsection{Game Loop}
Problem Statement\
-In the context of game development, a robust game loop is essential for maintaining consistent gameplay and ensuring that game logic, physics, and rendering are executed in a synchronized manner. Without a well-defined game loop, issues such as inconsistent frame rates, unresponsive input handling, and unpredictable behavior can arise, leading to a poor user experience. Therefore, the implementation of a game loop within a game engine is crucial for providing a stable foundation upon which game developers can build their projects.
+In the context of game development, a robust game loop is essential for maintaining consistent gameplay and ensuring that game logic, physics, and rendering are executed in a synchronized manner.
+Without a well-defined game loop, issues such as inconsistent frame rates, unresponsive input handling, and unpredictable behavior can arise, leading to a poor user experience.
+Therefore, the implementation of a game loop within a game engine is crucial for providing a stable foundation upon which game developers can build their projects./
+
Game Loop Design\
-The game loop is integrated directly into the engine to streamline development and minimize timing issues for game developers. Two separate update functions are employed. A fixed-time update is used with a consistent time delay per update call for game logic and physics, ensuring predictable behavior regardless of fluctuations in frame rates. By performing physics calculations at regular intervals, game logic and physics are decoupled from frame rate, ensuring consistent behavior across different hardware.
+The game loop is integrated directly into the engine to streamline development and minimize timing issues for game developers.
+Two separate update functions are employed. A fixed-time update is used with a consistent time delay per update call for game logic and physics, ensuring predictable behavior regardless of fluctuations in frame rates.
+By performing physics calculations at regular intervals, game logic and physics are decoupled from frame rate, ensuring consistent behavior across different hardware.
Rendering and animations are handled separately on a per-frame basis.
A delay and delta time calculation are applied to create consitent visual behavior, even when frame rates vary.