Improve frame timing on non-Windows. Disable IdleTiming when audio is disabled.
Merge pull request #6555 from xsacha/timing2

Improve frame timing on non-Windows.