added fps output and tuned PS threading