Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Alexander Hirsch
crap
Commits
96454bc6
Commit
96454bc6
authored
Oct 22, 2019
by
Alexander Hirsch
Browse files
Fix timestamp typo
parent
3d309fc8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
slides/techniques_slides.md
slides/techniques_slides.md
+4
-4
No files found.
slides/techniques_slides.md
View file @
96454bc6
...
...
@@ -332,8 +332,8 @@ double Engine::updateTimestamp()
{
const
auto
now
=
Clock
::
now
();
auto
delta
=
now
-
m_timestamp
e
;
m_timestamp
e
=
now
;
auto
delta
=
now
-
m_timestamp
;
m_timestamp
=
now
;
// cap delta to 100 milliseconds
delta
=
std
::
min
<
Clock
::
duration
>
(
delta
,
50ms
);
...
...
@@ -351,8 +351,8 @@ double Engine::updateTimestamp()
{
const
auto
now
=
Clock
::
now
();
auto
delta
=
now
-
m_timestamp
e
;
m_timestamp
e
=
now
;
auto
delta
=
now
-
m_timestamp
;
m_timestamp
=
now
;
// Large time deltas can cause issues with physics simulations. Capping it
// here affects the whole simulation (not just physics) equally.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment