Browse Source

Update lovr.timer.getDelta;

bjorn 5 months ago
parent
commit
46fb3370af
1 changed files with 3 additions and 1 deletions
  1. 3 1
      api/lovr/timer/getDelta.lua

+ 3 - 1
api/lovr/timer/getDelta.lua

@@ -2,7 +2,8 @@ return {
   summary = 'Get the time elapsed since the last update.',
   description = [[
     Returns the time between the last two frames.  This is the same value as the `dt` argument
-    provided to `lovr.update`.
+    provided to `lovr.update` when VR is disabled.  When VR is enabled, the `dt` will instead be
+    `lovr.headset.getDeltaTime`.
   ]],
   arguments = {},
   returns = {
@@ -23,6 +24,7 @@ return {
     `lovr.timer.getTime` for that.
   ]],
   related = {
+    'lovr.headset.getDeltaTime',
     'lovr.timer.getTime',
     'lovr.update'
   }