[SOLVED] Small delta time without graphics and window
Posted: Fri Aug 09, 2019 3:17 am
Hi, I'm doing a server version of my game without a graphic interface
Somehow the delta time varies and that makes my game look very laggy
I tested my code using lovec.exe
Using a simple print(dt) I had this result
With UI
t.window.vsync = 1
t.modules.window = true
t.modules.graphics = true
0.016947906610767
0.016966412619695
0.015946011801134
Without UI
t.window.vsync = 1
t.modules.window = false
t.modules.graphics = false
0.0019976209496235
0.0029990017028467
I tried to round the number (dt*10 or 1/60), but my game entities collapse and move very crazy
Update : I make a test file and I have the same result
Somehow the delta time varies and that makes my game look very laggy
I tested my code using lovec.exe
Using a simple print(dt) I had this result
With UI
t.window.vsync = 1
t.modules.window = true
t.modules.graphics = true
0.016947906610767
0.016966412619695
0.015946011801134
Without UI
t.window.vsync = 1
t.modules.window = false
t.modules.graphics = false
0.0019976209496235
0.0029990017028467
I tried to round the number (dt*10 or 1/60), but my game entities collapse and move very crazy
Update : I make a test file and I have the same result