Fix bug with "import snapshot" and greatly increase rendering speed on Linux