Improve performance of the lwjgl backend
Merge pull request #1605 from Tom-Ski/meow

Improve empty while loop performance in the lwjgl backend