The demos dispose of the
PMREMGenerator instance right after the environment textures are created. Seems like it is used only for setup, f.e. take your env map, PMREM it, throw the generator away.
What use cases are there for keep it alive?
Only thing I can imagine is perhaps loading new env maps in a dynamic model viewer, or something. But for games where assets are pre-determined, no need to keep it, right?
Or maybe in a game, we switch from one scene to another, and we wish to generate a new env map, so we keep it around for when we switch scenes? We could also just make a new one each time.
Any thought when to keep it?