Changed timeout to use sleep instead of polling GetPlatformTexture()