Merge branch 'liteCraft' into Vulkan

pull/12/head
hayden v 2020-03-03 12:39:35 +10:00
commit 6654e5c51d
1 changed files with 2 additions and 2 deletions

View File

@ -50,10 +50,10 @@ public class Timer extends GingerThread
public boolean tick()
{
long currentTime = System.currentTimeMillis();
long currentTime = System.nanoTime();
if (currentTime >= nextTick)
{
long targetTimeDelta = 1000L / tickRate;
long targetTimeDelta = 1000000000L / tickRate;
if (lastTick == 0 || nextTick == 0)
{
lastTick = currentTime - targetTimeDelta;