From: Neil Date: Sat, 10 Sep 2016 17:04:06 +0000 (+0200) Subject: Add debug timer to Boyd.tick X-Git-Tag: tabakrolletjie-v1.0.0~69 X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=7487a9c4f8589028c11e5d2a6edaaf8a73c9059d;p=tabakrolletjie.git Add debug timer to Boyd.tick --- 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