Fix FPS NaN
This commit is contained in:
parent
5ebe77c257
commit
2c5e115fe0
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue