summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLex Neva <github.com@lexneva.name>2018-08-26 00:10:11 -0400
committerLex Neva <github.com@lexneva.name>2018-08-26 00:10:11 -0400
commit0bc2992686339fcdd8b71018f43fecb3c9111349 (patch)
treefe349b7944e5c02a0a44c995f832269571c62c72 /lib
parentc44e0080296dbf771dba113d82372cffb88952a9 (diff)
shouldn't subtract rendering time from CallLater time
Diffstat (limited to 'lib')
-rw-r--r--lib/simulator.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/simulator.py b/lib/simulator.py
index 82de3201..070213c5 100644
--- a/lib/simulator.py
+++ b/lib/simulator.py
@@ -208,7 +208,7 @@ class DrawingPanel(wx.Panel):
self.Refresh()
- wx.CallLater(int(1000 * max(0.001, frame_time - self.last_frame_duration)), self.animate)
+ wx.CallLater(int(1000 * frame_time), self.animate)
def OnPaint(self, e):
dc = wx.PaintDC(self)