Thanks a lot for the hint. I applied codes below from those PRs and the problem is fixed. It seems that memory leak leads to the drop of fps.