X-Git-Url: https://plomlompom.com/repos/berlin_corona.txt?a=blobdiff_plain;f=plomrogue%2Fgame.py;h=bfa521c81e04d23cb1253201224c8cb439fa29d4;hb=a0937c1f3712d61831911075c7dacedcb616a261;hp=3c927dbb7dc92e2718b08185f71e496f469694e1;hpb=441cf8d41a223e9bcd702d4ccb41ae679e6fcae3;p=plomrogue2 diff --git a/plomrogue/game.py b/plomrogue/game.py index 3c927db..bfa521c 100755 --- a/plomrogue/game.py +++ b/plomrogue/game.py @@ -265,6 +265,8 @@ class Game(GameBase): self.io.send('PLAY_ERROR ' + quote(str(e)), connection_id) if self.changed: self.turn += 1 + # send_gamestate() can be rather expensive, due to among other reasons + # re-calculating each player's FOV, so don't send it out too often if self.last_send_gamestate < \ datetime.datetime.now() -self.send_gamestate_interval: self.send_gamestate()