Linux vSync. Not working.
Replace singal alarm by fps clock.
Refactor.