removed thread again for resource loading since opengl can not handle it