{
  "pass": {
    "crash": false,
    "compare": [
      {
        "axis": "RX_VK_TARGET_REUSE_MEMORY",
        "side": "pr",
        "value": "1",
        "metric": "frametime_p99_ms",
        "against": "0",
        "segment": "standing",
        "max_delta_pct": 20
      },
      {
        "axis": "RX_VK_TARGET_REUSE_MEMORY",
        "side": "pr",
        "value": "2",
        "metric": "frametime_p99_ms",
        "against": "0",
        "segment": "standing",
        "max_delta_pct": 20
      }
    ],
    "screenshot": {
      "max_diff": 0.15
    },
    "log_forbidden_hits": {
      "max": 0
    }
  },
  "probe": [
    {
      "kind": "crash"
    },
    {
      "kind": "frametime"
    },
    {
      "kind": "draws"
    },
    {
      "kind": "vram"
    },
    {
      "kind": "log_match",
      "expected": [],
      "forbidden": [
        "vk: device lost"
      ]
    },
    {
      "kind": "log_value",
      "value": [
        {
          "name": "pool_mb",
          "take": "max",
          "pattern": "render target images: .* it holds [0-9]+ \\(([0-9]+) MB\\)"
        },
        {
          "name": "reused_by_size",
          "take": "max",
          "pattern": "render target images: .* ([0-9]+) reused by size"
        }
      ]
    }
  ],
  "matrix": {
    "pr_only": {
      "RX_VK_TARGET_REUSE_MEMORY": [
        "0",
        "1",
        "2"
      ]
    }
  },
  "schema": 8,
  "target": [
    {
      "name": "windows+nvidia",
      "tags": [
        "windows",
        "nvidia"
      ],
      "max_reports": 2,
      "min_reports": 1
    },
    {
      "name": "windows+amd",
      "tags": [
        "windows",
        "amd"
      ],
      "max_reports": 2,
      "min_reports": 1
    },
    {
      "name": "windows+intel",
      "tags": [
        "windows",
        "intel"
      ],
      "max_reports": 2,
      "min_reports": 1
    },
    {
      "name": "linux+nvidia",
      "tags": [
        "linux",
        "nvidia"
      ],
      "max_reports": 2,
      "min_reports": 1
    },
    {
      "name": "linux+amd",
      "tags": [
        "linux",
        "amd"
      ],
      "max_reports": 2,
      "min_reports": 1
    },
    {
      "name": "steamdeck",
      "tags": [
        "steamdeck"
      ],
      "max_reports": 2,
      "min_reports": 1
    }
  ],
  "summary": "Compare render-target reuse levels during Hyrule Field camera turns and standing",
  "baseline": {
    "ref": "main"
  },
  "scenario": [
    {
      "env": {},
      "name": "field-turn-and-stand",
      "runs": 1,
      "step": [
        {
          "do": "teleport",
          "to": "HyruleField_Child"
        },
        {
          "do": "wait",
          "map": "HyruleField_Child",
          "event": "map",
          "timeout_s": 60
        },
        {
          "do": "wait_s",
          "seconds": 5
        },
        {
          "do": "shot",
          "name": "field-before",
          "upload": false,
          "compare": "baseline"
        },
        {
          "do": "repeat",
          "step": [
            {
              "x": 1,
              "y": 0,
              "do": "stick",
              "stick": "R",
              "frames": 600
            }
          ],
          "count": 4
        },
        {
          "do": "shot",
          "name": "field-after-turn",
          "upload": false,
          "compare": "baseline"
        },
        {
          "do": "measure",
          "name": "standing",
          "warmup_s": 5,
          "duration_s": 25
        },
        {
          "do": "shot",
          "name": "field-standing",
          "upload": false,
          "compare": "baseline"
        }
      ],
      "start": "save:kokiri-start",
      "matrix": true,
      "settings": {
        "fullscreen": 0,
        "frame_generation": 0
      }
    }
  ]
}
