Problem
Observed both in 7.0 and 8.0. A minimal reproduce:
- Open an arbitrary scene with emissive meshes in Mogwai and load PathTracer script.
- Adjust the emissive material parameters
- As you adjust the parameters, memory grow linearly.
Possible cause
I tried to dig out the root cause, but only managed to find out the problem has something to do with slang program compilation: Visual Studio shows that every time spCompile is called, we can see a memory growth(+200M every time, on Windows, Falcor 7.0).