1
0
mirror of https://github.com/lxsang/Diya-API.git synced 2024-12-26 03:18:22 +01:00

Add missing code of the previous commit

This commit is contained in:
Dany LE 2022-08-14 01:39:09 +02:00
parent 26368c37ab
commit 677145f1a1

View File

@ -103,14 +103,13 @@ DiyaBoot >> initialize [
{ #category : #events }
DiyaBoot >> render [
|launcher|
DiyaRendererContext uniqueInstance.
launcher := DiyaApplicationLauncher uniqueInstance.
launcher setup.
self GLinit.
[ launcher running ] whileTrue: [
DiyaClock uniqueInstance tick.
launcher main.
SDL2 glSwapWindow: window.
DiyaRendererContext uniqueInstance render.
SDL2 delay:
(0 max:
(1000/ self class maxFPS) asInteger - (DiyaClock uniqueInstance lapDelta asMilliSeconds)).