{
  "pass": {
    "crash": false,
    "compare": [
      {
        "axis": "RX_VK_DROP_MODULES",
        "side": "pr",
        "value": "1",
        "metric": "rss_peak_mb",
        "against": "0",
        "max_delta_pct": 10
      },
      {
        "axis": "RX_VK_DROP_MODULES",
        "side": "pr",
        "value": "1",
        "metric": "frametime_p99_ms",
        "against": "0",
        "max_delta_pct": 20
      }
    ],
    "screenshot": {
      "max_diff": 0.15
    },
    "load_time_max_s": {
      "max_delta_pct": 30
    },
    "frametime_p99_ms": {
      "max_delta_pct": 20
    },
    "log_forbidden_hits": {
      "max": 0
    }
  },
  "probe": [
    {
      "kind": "crash"
    },
    {
      "kind": "frametime"
    },
    {
      "kind": "process"
    },
    {
      "kind": "load_time"
    },
    {
      "kind": "log_match",
      "expected": [],
      "forbidden": [
        "vk: device lost",
        "[1-9][0-9]* could not be made again"
      ]
    },
    {
      "kind": "log_value",
      "value": [
        {
          "name": "modules",
          "none": 0,
          "take": "max",
          "pattern": "vk: programs: ([0-9]+) shader modules let go after the precompile"
        },
        {
          "name": "private_before_mb",
          "take": "max",
          "pattern": "private memory went ([0-9]+) -> [0-9]+ MB"
        },
        {
          "name": "private_after_mb",
          "take": "max",
          "pattern": "private memory went [0-9]+ -> ([0-9]+) MB"
        },
        {
          "name": "release_ms",
          "take": "max",
          "pattern": "the release took ([0-9.]+) ms"
        }
      ]
    }
  ],
  "matrix": {
    "RX_VK_DROP_MODULES": [
      "0",
      "1"
    ]
  },
  "schema": 8,
  "target": [
    {
      "name": "windows+ram16gb",
      "tags": [
        "windows"
      ],
      "ram_gb": 16,
      "max_reports": 2,
      "min_reports": 1
    },
    {
      "name": "windows+amd",
      "tags": [
        "windows",
        "amd"
      ],
      "max_reports": 2,
      "min_reports": 1
    },
    {
      "gpu": [
        "arc *"
      ],
      "name": "windows+intel+gpu-arc-*",
      "tags": [
        "windows",
        "intel"
      ],
      "max_reports": 2,
      "min_reports": 1
    }
  ],
  "summary": "Compare Windows precompile shader-module release off and on in Hyrule Field and the Market",
  "baseline": {
    "ref": "main"
  },
  "scenario": [
    {
      "env": {
        "RX_VK_LOAD": "start",
        "RX_VK_PRECOMPILE": "1",
        "RX_VK_LOG_PROGRAM_LIFE": "1"
      },
      "name": "precompile-play",
      "runs": 1,
      "step": [
        {
          "do": "teleport",
          "to": "HyruleField_Child"
        },
        {
          "do": "wait",
          "map": "HyruleField_Child",
          "event": "map",
          "timeout_s": 120
        },
        {
          "x": 0.0,
          "y": 1.0,
          "do": "stick",
          "stick": "L",
          "frames": 120
        },
        {
          "do": "shot",
          "name": "field",
          "upload": false,
          "compare": "baseline"
        },
        {
          "do": "measure",
          "name": "field",
          "warmup_s": 5,
          "duration_s": 20
        },
        {
          "do": "teleport",
          "to": "Market_Child"
        },
        {
          "do": "wait",
          "map": "Market_Child",
          "event": "map",
          "timeout_s": 120
        },
        {
          "x": 0.0,
          "y": 1.0,
          "do": "stick",
          "stick": "L",
          "frames": 120
        },
        {
          "do": "shot",
          "name": "market",
          "upload": false,
          "compare": "baseline"
        },
        {
          "do": "measure",
          "name": "market",
          "warmup_s": 5,
          "duration_s": 20
        }
      ],
      "start": "save:kokiri-start",
      "matrix": true,
      "settings": {}
    }
  ]
}
