How to solve lag

This is not a real solution, but while working on a windows demo, I experienced the same issues, but only on some computers (difficult to tell why). Anyhow, disabling vsync made the game at least run smoothly on all of them.