From 7487a9c4f8589028c11e5d2a6edaaf8a73c9059d Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 10 Sep 2016 19:04:06 +0200 Subject: [PATCH] Add debug timer to Boyd.tick --- tabakrolletjie/enemies.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tabakrolletjie/enemies.py b/tabakrolletjie/enemies.py index cca4ce1..333c827 100644 --- a/tabakrolletjie/enemies.py +++ b/tabakrolletjie/enemies.py @@ -13,6 +13,7 @@ from .constants import (SCREEN_SIZE, MOULD_CATEGORY, OBSTACLE_CATEGORY, from .loader import loader from .sound import sound from .transforms import Multiply +from .utils import debug_timer MOULD_FILTER = pymunk.ShapeFilter( mask=MOULD_CATEGORY | OBSTACLE_CATEGORY, @@ -205,6 +206,7 @@ class Boyd(object): self._image.blit(m.get_eyeball(), m.pygame_pos(self._image), None, 0) + @debug_timer('Boyd.tick') def tick(self, gamestate, space, lights): redraw = False # Handle spawn events -- 2.34.1