Skip to content

Instantly share code, notes, and snippets.

@laserbat
Created July 20, 2011 13:08
Show Gist options
  • Save laserbat/1094920 to your computer and use it in GitHub Desktop.
Save laserbat/1094920 to your computer and use it in GitHub Desktop.
FOV >> calcFov
FOV Total: 132.086039 ms on 23 calls.
FOV L: 5.503178 ms CALL calcFov(<Game.Game instance at 0x80ab70c>)
FOV A: 5.742871 ms
FOV H: 6.980896 ms CALL calcFov(<Game.Game instance at 0x80ab70c>)
FOV Trace starts at ./main.py:35 (<module>)
FOV play.mainLoop() ./main.py:35 (<module>)
FOV self.calcFov() /home/init/CutlassRLgit/CutlassRL/src/Game.py:430 (mainLoop)
FOV HIST(bins: 10 step: 0.147772 ms)
FOV 5.50318 ms 2|########## |
FOV 5.65095 ms 2|########## |
FOV 5.79872 ms 4|#################### |
FOV 5.94649 ms 8|########################################|
FOV 6.09426 ms 5|######################### |
FOV 6.24204 ms 0| |
FOV 6.38981 ms 0| |
FOV 6.53758 ms 0| |
FOV 6.68535 ms 0| |
FOV 6.83312 ms 1|##### |
LOS >> inLos
LOS Checks if point is in LOS
LOS Total: 102.840900 ms on 4907 calls.
LOS L: 0.005960 ms CALL inLos(<Game.Game instance at 0x80ab70c>,15,10,10,9)
LOS A: 0.020958 ms
LOS H: 0.832796 ms CALL inLos(<Game.Game instance at 0x80ab70c>,8,29,10,7)
LOS Trace starts at ./main.py:35 (<module>)
LOS play.mainLoop() ./main.py:35 (<module>)
LOS self.drawMap() /home/init/CutlassRLgit/CutlassRL/src/Game.py:432 (mainLoop)
LOS if self.inLos(mapx, mapy, self.x, self.y): /home/init/CutlassRLgit/CutlassRL/src/Game.py:592 (drawMap)
LOS HIST(bins: 10 step: 0.082684 ms)
LOS 0.00596 ms 4886|########################################|
LOS 0.08864 ms 5| |
LOS 0.17133 ms 6| |
LOS 0.25401 ms 4| |
LOS 0.33669 ms 1| |
LOS 0.41938 ms 0| |
LOS 0.50206 ms 0| |
LOS 0.58475 ms 2| |
LOS 0.66743 ms 1| |
LOS 0.75011 ms 1| |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment