aboutsummaryrefslogtreecommitdiff
path: root/img/gameloop-flow.puml
blob: 1a46cd7a8b971715510c70a5e70f29ab056761f5 (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
27
@startuml
title Game Loop Flowchart

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