From 0bc2992686339fcdd8b71018f43fecb3c9111349 Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Sun, 26 Aug 2018 00:10:11 -0400 Subject: shouldn't subtract rendering time from CallLater time --- lib/simulator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/simulator.py') 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) -- cgit v1.2.3