threaded loop. Need to correct fps counter to take render fps