Skip to content

Commit 46fb337

Browse files
committed
Update lovr.timer.getDelta;
1 parent 55ef334 commit 46fb337

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

api/lovr/timer/getDelta.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ return {
22
summary = 'Get the time elapsed since the last update.',
33
description = [[
44
Returns the time between the last two frames. This is the same value as the `dt` argument
5-
provided to `lovr.update`.
5+
provided to `lovr.update` when VR is disabled. When VR is enabled, the `dt` will instead be
6+
`lovr.headset.getDeltaTime`.
67
]],
78
arguments = {},
89
returns = {
@@ -23,6 +24,7 @@ return {
2324
`lovr.timer.getTime` for that.
2425
]],
2526
related = {
27+
'lovr.headset.getDeltaTime',
2628
'lovr.timer.getTime',
2729
'lovr.update'
2830
}

0 commit comments

Comments
 (0)