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