zortos293 / lichii
Code health
Hotspots average 5.3, the place fixes pay off most.
Explore this codebase
- Code health map546hotspots across 4,271 files
- Ownership2,181sole-owned files: one author, no second reader
- Architecture4modules, 42 entry points
- Decisions85recorded, of which 0 in force and 85 background
- Refactoring349open opportunities, one per file
- TestsNo coverage report yet. Run your tests with coverage on, then add the report:
AlsoDocsChatFilesKnowledge graphChange couplingCommitsStatsCosts
Do next · 9
9 things worth doing in the week to Nov 18, the last indexed commit.
Worth planning
Break up LowerToMaxwellWith (CCN 2701, 3,828 lines)
src/shader_recompiler/frontend/ampere/lower_to_maxwell.h:2724
LowerToMaxwellWith has many paths; easier to read and change once split, which also removes a duplicate; its file is imported by 48 files, changed 160 times in 90 days.
- gain
- up to under +0.1 health on this file(inferred)
- finding
- Complex method
- size
- CCN 2701, 3,828 lines, nests 7 deep
- severity
- high
Medium effort, worth a checkStart breaking up KeplerCompute::ProcessNativeMethod (CCN 107, 350 lines)
src/video_core/engines/kepler_compute.cpp:352
KeplerCompute::ProcessNativeMethod has many paths; easier to read and change once split, which also removes a duplicate; its file is imported by 244 files, changed 71 times in 90 days.
- gain
- up to under +0.1 health on this file(inferred)
- finding
- Complex method
- size
- CCN 107, 350 lines, nests 4 deep
- severity
- high
Medium effort, worth a checkTidy the code shape this week's commits left: 23 findings in 13 files
11 commits in the last 7 days added or worsened long, complex or deeply nested code, still open. Start with
src/video_core/texture_cache/texture_cache.h(4 findings): tidying it while the change is fresh costs less than after the next one.- code-shape findings
- 23
- files
- 13
- commits
- 11
Large effortSimplify
DecodeLoopinsrc/core/hle/service/nx2_gsv.h: tests reach it, and fixes keep landingChanged 150 times in 90 days, and 19 of those commits were bug fixes.
- commits in 90 days
- 150
- bug-fix commits
- 19
- line coverage
- Unknown, no report
- tests that reach it
- 2 test files, import graph(inferred)
Large effort, worth a checkSimplify
TextureCache<P>::TickFrameinsrc/video_core/texture_cache/texture_cache.h: tests reach it, and fixes keep landingChanged 167 times in 90 days, and 13 of those commits were bug fixes.
- commits in 90 days
- 167
- bug-fix commits
- 13
- line coverage
- Unknown, no report
- tests that reach it
- 354 test files, import graph(inferred)
Large effort, worth a check
Everything we found
5 areas
Every detector's open count by area. The actions above are the part worth doing.
- Code health5,453 open findingsCriticalChange entropy · src/video_core/texture_cache/texture_cache.h202 findings · 14.8 deducted
- Refactoring349 open opportunitiesMediumanalyze+1.0 health, M effort · tools/nx2/cache_metrics.py
- Doc drift17Mediumdocs/Settings.mdLink points at #step-3-4-localization, which docs/Settings.md no longer declares.
- Decisions0 drifting from the codeMediumsrc/core/hle/service/nx2_gsv.hHigh-churn file with no governing decision
- Ownership2,181 sole-owned filesMediumsrc/tests/video_core/buffer_cache_ports.cppOne author, no second reader