you may have an infinite or very long loop somewhere- or are doing something many times during each frame that really should only happen once in a while...
but it sounds like the problem is in some code that activate when the player is scanned, so if you post something post that