Run sim in a tighter loop when in not rendering

Makes the sim run about 2-3x faster as a 1ms interval is not as performant as a loop.
Merge pull request #9 from Petah/patch-1

Run sim in a tighter loop when in not rendering