diff options
| author | Lex Neva <github.com@lexneva.name> | 2018-08-26 00:10:11 -0400 |
|---|---|---|
| committer | Lex Neva <github.com@lexneva.name> | 2018-08-26 00:10:11 -0400 |
| commit | 0bc2992686339fcdd8b71018f43fecb3c9111349 (patch) | |
| tree | fe349b7944e5c02a0a44c995f832269571c62c72 /lib | |
| parent | c44e0080296dbf771dba113d82372cffb88952a9 (diff) | |
shouldn't subtract rendering time from CallLater time
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/simulator.py | 2 |
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) |
