# aras-p/glsl-optimizer

GLSL optimizer based on Mesa's GLSL compiler. Used to be used in Unity for mobile shader optimization.

Repository: https://github.com/aras-p/glsl-optimizer
Canonical: https://ross.abutalabs.com/products/glsl-optimizer
Language: C++
License: NOASSERTION
License Family: other
Topics: shaders, glsl, metal, cross-compiler, optimizer
Last push: 2020-05-14T19:15:37+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 5879, "days_push": 2302, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1786, forks 435 (observed 2026-08-28T04:05:36.139198+00:00)

## What it is
A C++ library based on Mesa's GLSL compiler that performs GPU-independent optimizations on GLSL shaders and outputs optimized GLSL or Metal source. It was built for Unity's mobile shader compilation pipeline.

## Use cases
- optimize glsl shaders for mobile gpus
- convert glsl shaders to metal source
- strip dead code from shaders offline
- do uniform and input reflection for shaders offline
- constant folding and inlining in shader code

## When to choose
- you need offline GLSL optimization for mobile platforms lacking good shader compilers
- you want to transpile GLSL to Metal
- you're maintaining a legacy Unity 3.x-era shader pipeline

## When to avoid
- you need an actively maintained shader compiler - the project has been unmaintained since 2016
- you're building a modern shader pipeline - Unity itself moved to a different compilation pipeline
- you need modern GLSL/Vulkan features

## Facets
- artifact type: library
- maturity: abandoned
- function: compiler, developer-tools
- domain: graphics, developer-tools
- platform: cpp, windows, cross-platform
- tags: glsl, shaders, metal, shader-optimization, mesa, unity, game-development, macos, linux

## Member repositories
- aras-p/glsl-optimizer (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:36.139198+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:24:09.540451+00:00, confidence not recorded.
  - readme: https://github.com/aras-p/glsl-optimizer (fetched 2026-08-28T04:05:36.139198+00:00, sha cfe6704f1b59)
- Data as of 2026-08-30T08:39:29.467469+00:00.
