create the cache after loading textures, preventing premature draw