def checkStats():
		stats = viz.getRenderStats()
		if stats.frameTime > 0.012:
			print viz.tick()
			print stats

#	vizact.onupdate(viz.PRIORITY_DEFAULT, checkStats)
def lookingAtOpening():
 global timesLookedOpening, lookingOpeningTimer, LOOKED_OPENING_EVENT
 renderStats = viz.getRenderStats()
 if renderStats.drawableCount > 300:
  timesLookedOpening += 1
 
 if timesLookedOpening >= 20:
  viz.sendEvent(LOOKED_OPENING_EVENT)
  lookingOpeningTimer.setEnabled(0)