libretro/RetroArch has 2,454,876 source lines of code out of 3,057,374 total lines across 9,272 files, counted from the master ref at commit 1815302e85b0 by the OctoCounts tokei engine on 2026-10-12. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.
As of 2026-10-12 (commit 1815302e85b0), libretro/RetroArch contains 3,057,374 total lines: 2,454,876 code, 326,181 comments, 276,317 blank, across 9,272 files in 44 languages (top: C 40.4%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving libretro/RetroArch to commit 1815302e85b0, downloading the repository source archive, and counting every source file with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options, so counting the same revision again reproduces exactly these numbers.
This is a very large codebase by counted code lines. Code represents 80.3% of all lines, comments represent 10.7%, and the repository averages 265 code lines per file. C accounts for 40.4% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C | 1602 | 1285577 | 992667 | 157269 | 135641 |
| C Header | 1666 | 1038945 | 869936 | 109822 | 59187 |
| GLSL | 4579 | 259793 | 228370 | 3396 | 28027 |
| C++ | 122 | 174965 | 135086 | 18172 | 21707 |
| C++ Header | 36 | 100338 | 79113 | 8819 | 12406 |
| Objective-C | 41 | 36748 | 28376 | 4449 | 3923 |
| Python | 105 | 26536 | 22534 | 1441 | 2561 |
| Bitbake | 33 | 18692 | 18179 | 206 | 307 |
| Makefile | 445 | 24464 | 17384 | 2145 | 4935 |
| XML | 46 | 10700 | 9888 | 142 | 670 |
| Shell | 131 | 13881 | 9775 | 2733 | 1373 |
| Visual Studio Project | 17 | 8243 | 8243 | 0 | 0 |
Top language (C 40.4%). Generated at .
libretro/RetroArch has 3,057,374 total lines, including 2,454,876 code lines, 326,181 comment lines, and 276,317 blank lines.
OctoCounts resolved the public GitHub repository to commit 1815302e85b0, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.
This OctoCounts report was generated from master at commit 1815302e85b0 on 2026-10-12T06:22:19.219652056+00:00.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
Play the growth animation for libretro/RetroArch on this page — 2,454,876 code lines across 12 languages, counted by tokei.