aboutsummaryrefslogtreecommitdiff
path: root/img/gameloop-flow.puml
blob: e75ea42efca921025d77e55aa85a1c98168bb53f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
@startuml
!include theme.ipuml
start

:Initialize LoopManager;
:Start LoopTimer;

repeat
	:Update LoopTimer;
	:Check for Events;
	:Process Input;

	while (Lag >= Fixed Delta Time?) is (yes)
		:Perform Fixed Update;
		:Advance Fixed Update;
	endwhile

	:Perform Normal Update;
	:Render Frame;

repeat while (Game Running?)

:Game exit logic;

stop
@enduml