Skip to content

Potential memory leak in program compilation #464

Description

@Hyiker

Problem

Observed both in 7.0 and 8.0. A minimal reproduce:

  1. Open an arbitrary scene with emissive meshes in Mogwai and load PathTracer script.
  2. Adjust the emissive material parameters
  3. 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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions