Only enable autoframeskip if frameskipping != 0

Referencing #5373.
another approach
Merge pull request #5380 from ufdada/patch-2

Only enable autoframeskip if frameskipping != 0