Fix FPS NaN

This commit is contained in:
nsubiron 2019-01-31 12:58:39 +01:00
parent 5ebe77c257
commit 2c5e115fe0
1 changed files with 3 additions and 3 deletions

View File

@ -336,7 +336,7 @@ class HUD(object):
def on_world_tick(self, timestamp):
self._server_clock.tick()
self.server_fps = self._server_clock.get_fps()
self.server_fps = np.nan_to_num(self._server_clock.get_fps())
self.frame_number = timestamp.frame_count
self.simulation_time = timestamp.elapsed_seconds