Tick limiter

Based on PR-time branch.

For headless (and possibly for lwjgl when in stateLoading on fast machines), in tick() sleep 1000 microseconds if the delta is zero since the last update.  This change dropped the load on my system by half according to the top process  monitor.