bkaradzic/glsl-optimizer — explained in plain English
Analysis updated 2026-08-04 · repo last pushed 2021-12-29
Optimize mobile game shaders so visual effects run smoothly on lower-end phones.
Strip unnecessary code from shaders offline before shipping a game.
Convert GLSL shaders to Metal format for cross-platform graphics development.
Inspect what inputs a shader actually needs to reduce overhead.
| bkaradzic/glsl-optimizer | aerl-official/aerl-c-framework | antoxa2584x/shar-psp | |
|---|---|---|---|
| Stars | 4 | 4 | 4 |
| Language | C++ | C++ | C++ |
| Last pushed | 2021-12-29 | — | — |
| Maintenance | Dormant | — | — |
| Setup difficulty | moderate | easy | hard |
| Complexity | 3/5 | 2/5 | 5/5 |
| Audience | developer | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
Requires building C++ code from source and integrating with an existing shader pipeline, project has been dormant since 2016 so dependencies may need adjustment.
GLSL optimizer is a tool that takes shader code (the small programs that tell a graphics card how to render things like lighting, textures, and shadows) and rewrites it to run faster and use less space. The main benefit is that it can significantly improve graphics performance on mobile devices, where built-in shader optimization by the hardware or drivers is often weak or missing entirely. The tool works by reading in your existing shader code and applying a series of automatic cleanups. It removes code that is never actually used, simplifies math operations, replaces variables with their fixed values where possible, and consolidates redundant instructions. After processing, it hands you back cleaner, faster code. It can output standard GLSL or Metal shader code, making it useful for cross-platform development. Game developers and graphics engineers are the primary users. For example, a team building a mobile game in Unity might use this to ensure their visual effects run smoothly on lower-end phones. Even when targeting devices with decent built-in optimization, developers can use this tool offline to strip out unnecessary code, make shaders smaller, and inspect what inputs the shader actually needs before the game even ships. In fact, it was built for Unity's purposes and has been integrated directly into the engine since version 3.0. The project is essentially a wrapper around the GLSL compiler from Mesa 3D, a well-established open-source graphics project. One notable aspect is that the project has been largely dormant since mid-2016. The creator notes that Unity has since moved to a different shader compilation pipeline, so no significant updates are expected. Despite this, the core optimization techniques it provides remain functional for the GLSL versions it supports.
A tool that rewrites graphics shader code to run faster and use less memory, especially helpful for mobile games where built-in optimization is weak. It reads your shader, removes unused parts, simplifies math, and outputs cleaner GLSL or Metal code.
Mainly C++. The stack also includes C++, Mesa 3D, GLSL.
Dormant — no commits in 2+ years (last push 2021-12-29).
No license is mentioned in the explanation, so the terms of use are unclear.
Setup difficulty is rated moderate, with roughly 1h+ to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Don't trust strangers blindly. Verify against the repo.