# red1-rahman/budgetick architecture

> Architecture diagram of the GitHub repository red1-rahman/budgetick, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/red1-rahman/budgetick
- Repository: https://github.com/red1-rahman/budgetick

## Overview

budgetick is a headless performance-analysis tool for comparing game-AI workloads against a real-time frame budget. The intended study workflow is to select map/scenario inputs, run workloads under benchmark conditions, and examine timing results alongside hardware metadata. The sampled code includes map/scenario parsing, three serial workload kernels, and a callback-based timing harness, but does not show an orchestrator connecting them or implementations of parallel backends. The graph therefore preserves those components without implying unsupported calls between them.

Main entry points: [`src/budgetick/harness.py`](https://github.com/red1-rahman/budgetick/blob/main/src/budgetick/harness.py) (Benchmark harness), [`src/budgetick/_types.py`](https://github.com/red1-rahman/budgetick/blob/main/src/budgetick/_types.py) (Array types), [`data`](https://github.com/red1-rahman/budgetick/tree/main/data) (Maps and scenarios), [`src/budgetick/astar.py`](https://github.com/red1-rahman/budgetick/blob/main/src/budgetick/astar.py) (A* pathfinding)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_inputs["Benchmark inputs"]
  node_mapdata[("Maps and scenarios")]
  node_parser["Data parser<br/>[data.py]"]
end

subgraph group_workloads["AI workloads"]
  node_types["Array types<br/>[_types.py]"]
  node_astar["A* pathfinding<br/>[astar.py]"]
  node_influence["Influence diffusion<br/>[influence_map.py]"]
  node_utility["Utility scoring<br/>[utility_ai.py]"]
end

subgraph group_measurement["Measurement"]
  node_harness["Benchmark harness<br/>[harness.py]"]
  node_results["Timing and metadata<br/>[harness.py]"]
end

node_researcher(("Researcher"))
node_hardware["Host hardware and OS"]

node_mapdata -->|"reads files"| node_parser
node_astar -->|"uses aliases"| node_types
node_influence -->|"uses aliases"| node_types
node_utility -->|"uses aliases"| node_types
node_researcher -.->|"runs benchmarks"| node_harness
node_harness -->|"writes timings"| node_results
node_harness -->|"collects facts"| node_hardware

click node_mapdata "https://github.com/red1-rahman/budgetick/tree/main/data"
click node_parser "https://github.com/red1-rahman/budgetick/blob/main/src/budgetick/data.py"
click node_types "https://github.com/red1-rahman/budgetick/blob/main/src/budgetick/_types.py"
click node_astar "https://github.com/red1-rahman/budgetick/blob/main/src/budgetick/astar.py"
click node_influence "https://github.com/red1-rahman/budgetick/blob/main/src/budgetick/influence_map.py"
click node_utility "https://github.com/red1-rahman/budgetick/blob/main/src/budgetick/utility_ai.py"
click node_harness "https://github.com/red1-rahman/budgetick/blob/main/src/budgetick/harness.py"
click node_results "https://github.com/red1-rahman/budgetick/blob/main/src/budgetick/harness.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_mapdata,node_parser toneBlue
class node_types,node_astar,node_influence,node_utility toneAmber
class node_harness,node_results toneMint
class node_researcher,node_hardware toneIndigo
```

## Components

### Benchmark inputs

- [Maps and scenarios](https://github.com/red1-rahman/budgetick/tree/main/data): `data`
- [Data parser](https://github.com/red1-rahman/budgetick/blob/main/src/budgetick/data.py): `src/budgetick/data.py`

### AI workloads

- [Array types](https://github.com/red1-rahman/budgetick/blob/main/src/budgetick/_types.py): `src/budgetick/_types.py`
- [A* pathfinding](https://github.com/red1-rahman/budgetick/blob/main/src/budgetick/astar.py): `src/budgetick/astar.py`
- [Influence diffusion](https://github.com/red1-rahman/budgetick/blob/main/src/budgetick/influence_map.py): `src/budgetick/influence_map.py`
- [Utility scoring](https://github.com/red1-rahman/budgetick/blob/main/src/budgetick/utility_ai.py): `src/budgetick/utility_ai.py`

### Measurement

- [Benchmark harness](https://github.com/red1-rahman/budgetick/blob/main/src/budgetick/harness.py): `src/budgetick/harness.py`
- [Timing and metadata](https://github.com/red1-rahman/budgetick/blob/main/src/budgetick/harness.py): `src/budgetick/harness.py`

### Other components

- **Researcher**
- **Host hardware and OS**

## Connections

- Maps and scenarios → Data parser: reads files (evidence: `src/budgetick/data.py`)
- A* pathfinding → Array types: uses aliases (evidence: `src/budgetick/astar.py`)
- Influence diffusion → Array types: uses aliases (evidence: `src/budgetick/influence_map.py`)
- Utility scoring → Array types: uses aliases (evidence: `src/budgetick/utility_ai.py`)
- Researcher → Benchmark harness: runs benchmarks
- Benchmark harness → Timing and metadata: writes timings (evidence: `src/budgetick/harness.py`)
- Benchmark harness → Host hardware and OS: collects facts (evidence: `src/budgetick/harness.py`)
