Reproduction steps:
- Open the attached "IN-138996" project
- Make sure the Profiler is open (Window > Analysis > Profiler)
- Open the “Assets/SharedAssets/Benchmark/BenchmarkScene.unity” scene
- Open the Build settings (File > Build Profiles)
- Under "Platform Settings", check "Development Build" and "Autoconnect Profiler"
- Build and run the project
- Observe the Player
- In the "TerminalScene" section, press the "Stop" button
- Switch to the Profiler, wait for the spike to appear in the CPU Usage section chart, then stop the Profiler recording
- Select the frame for the second spike in the chart
- In the frame view, set it to "Raw Hierarchy" or "Hierarchy" and search for "CreateGPU" in the search field
- Make sure that on the right of the search field it is set to "Related Data" (otherwise set it to that)
- Look for entries related to "Graphs/VegetationSSS_Graph" in the "Related Data" section (you may need to move to nearby frames before/after the spike using left/right arrows when CPU Usage is in frame view)
- Notice it has the keyword "_ENABLE_SSS" present
- Switch focus back to the Player and close it
- Switch to the Editor and select the "Benchmark" GameObject in the Hierarchy
- In the Inspector, find the "Graphics State Collection Manager" component and set its "Mode" to "Warm up"
- Open the "Collections" dropdown, add a new entry, and select the GraphicsStateCollection generated in "Assets/SharedAssets/GraphicsStateCollections"
- Switch to the Profiler, press "Clear" at the top, and enable recording
- Repeat steps 6 through 13
- Observe the "Keywords" present in the "Related Data"
Actual result: The "_ENABLE_SSS" keyword is present
Expected result: The "_ENABLE_SSS" keyword is missing
Reproducible with: 6000.0.73f1, 6000.3.13f1
Could not test with: 6000.0.0b15 (script errors) 6000.0.0b16 (profiler doesn't connect), 6000.4.3f1 (CS0115 errors), (6000.5.0b4, 6000.6.0a2) (script errors)