separate thread for state loader, texture loader