Written in C++ and using SDL, The Powder Toy is a desktop version of the classic 'falling sand' physics sandbox, it simulates air pressure and velocity as well as heat.
This report summarizes scanner evidence for The-Powder-Toy/The-Powder-Toy, a C++ project with 5,389 GitHub stars. SynthScan examined 98,834 lines of code across 750 source files, recording 108 pattern matches distributed across 7 syntactic categories. The legacy adjusted pattern signal is 1.1 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 102 finding(s).
Are imports declared and package/API names verified? 6 finding(s).
Are wrappers, guards, and repeated structures necessary? 1 finding(s).
Which changes need focused human review? 108 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 108 distinct pattern matches across 7 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | changelog.txt | 1 | # This file is used by the starcatcher.us update server to pull changelogs for mod releases | COMMENT |
| LOW | src/PowderToyRenderer.cpp | 1 | #include "graphics/Graphics.h" | COMMENT |
| LOW | src/PowderToy.cpp | 1 | #include "PowderToySDL.h" | COMMENT |
| LOW | src/PowderToy.cpp | 21 | #include "gui/game/IntroText.h" | COMMENT |
| LOW | src/simulation/Simulation.h | 1 | #pragma once | COMMENT |
| LOW | src/simulation/SimulationData.h | 1 | #pragma once | COMMENT |
| LOW | src/simulation/ElementClasses.h | 1 | #pragma once | COMMENT |
| LOW | src/simulation/ToolClasses.h | 1 | #pragma once | COMMENT |
| LOW | src/simulation/ToolCommon.h | 1 | #pragma once | COMMENT |
| LOW | src/simulation/SimulationData.cpp | 1 | #include "SimulationData.h" | COMMENT |
| LOW | src/simulation/ElementCommon.h | 1 | #pragma once | COMMENT |
| LOW | src/simulation/SnapshotDelta.cpp | 1 | #include "SnapshotDelta.h" | COMMENT |
| LOW | src/simulation/SnapshotDelta.cpp | 21 | // handled in a non-uniform, case-by-case manner. | COMMENT |
| LOW | src/simulation/SnapshotDelta.cpp | 41 | // of both Snapshots are equivalent and the SingleDiff should be ignored. If it's true, the | COMMENT |
| LOW | src/simulation/Editing.cpp | 1 | #include "Simulation.h" | COMMENT |
| LOW | src/simulation/Simulation.cpp | 1 | #include "Simulation.h" | COMMENT |
| LOW | src/simulation/gravity/Fft.cpp | 1 | #include "Gravity.h" | COMMENT |
| LOW | src/resampler/resampler.h | 181 | // of this software dedicate any and all copyright interest in the | COMMENT |
| LOW | src/resampler/resampler.cpp | 1 | #include "resampler.h" | COMMENT |
| LOW | src/resampler/resampler.cpp | 21 | COMMENT | |
| LOW | src/lua/CommandInterface.cpp | 1 | #include "CommandInterface.h" | COMMENT |
| LOW | src/lua/LuaCompat.h | 1 | #pragma once | COMMENT |
| LOW | src/lua/LuaScriptInterface.cpp | 1 | #include "LuaScriptInterface.h" | COMMENT |
| LOW | src/lua/LuaWindow.cpp | 1 | #include "LuaWindow.h" | COMMENT |
| LOW | src/lua/LuaMisc.cpp | 1 | #include "LuaScriptInterface.h" | COMMENT |
| LOW | src/lua/LuaSimulation.cpp | 1 | #include "LuaScriptInterface.h" | COMMENT |
| LOW | src/lua/LuaSocketTCPHttp.cpp | 1 | #include "LuaScriptInterface.h" | COMMENT |
| LOW | src/lua/LuaScriptInterface.h | 1 | #pragma once | COMMENT |
| LOW | src/lua/LuaInterface.cpp | 1 | #include "LuaScriptInterface.h" | COMMENT |
| LOW | src/common/Assert.h | 1 | #pragma once | COMMENT |
| LOW | src/common/platform/Common.cpp | 1 | #include "Platform.h" | COMMENT |
| LOW | src/common/platform/Windows.cpp | 1 | #include "Platform.h" | COMMENT |
| LOW | src/common/platform/Linux.cpp | 1 | #include "Platform.h" | COMMENT |
| LOW | src/common/clipboard/External.cpp | 1 | #include "Dynamic.h" | COMMENT |
| LOW | src/gui/options/OptionsView.cpp | 1 | #include "OptionsView.h" | COMMENT |
| LOW | src/gui/options/OptionsModel.cpp | 1 | #include "OptionsModel.h" | COMMENT |
| LOW | src/gui/interface/Engine.h | 1 | #pragma once | COMMENT |
| LOW | src/gui/interface/SaveButton.cpp | 1 | #include "SaveButton.h" | COMMENT |
| LOW | src/gui/interface/Component.h | 81 | COMMENT | |
| LOW | src/gui/interface/Component.h | 101 | /// | COMMENT |
| LOW | src/gui/interface/Component.h | 121 | // Params: | COMMENT |
| LOW | src/gui/interface/Component.h | 141 | // y: Y position of the mouse. | COMMENT |
| LOW | src/gui/interface/Component.h | 161 | /// | COMMENT |
| LOW | src/gui/interface/Engine.cpp | 261 | // complete candidate string. The start parameter tells us which | COMMENT |
| LOW | src/gui/update/UpdateActivity.cpp | 1 | #include "UpdateActivity.h" | COMMENT |
| LOW | src/gui/localbrowser/LocalBrowserView.cpp | 1 | #include "LocalBrowserView.h" | COMMENT |
| LOW | src/gui/localbrowser/LocalBrowserController.cpp | 1 | #include "LocalBrowserController.h" | COMMENT |
| LOW | src/gui/render/RenderView.cpp | 1 | #include "RenderView.h" | COMMENT |
| LOW | src/gui/game/GameModel.cpp | 1 | #include "Config.h" | COMMENT |
| LOW | src/gui/game/GameModel.cpp | 21 | #include "client/http/ExecVoteRequest.h" | COMMENT |
| LOW | src/gui/game/GameModel.cpp | 421 | // * SnapshotDelta d is the difference between the two Snapshots A and B (i.e. d = B - A) | COMMENT |
| LOW | src/gui/game/GameModel.cpp | 441 | // N - 1 | Snapshot A | Snapshot A | A | | COMMENT |
| LOW | src/gui/game/GameModel.cpp | 461 | // is deleted. If historyPosition is below N, this gets rid of the Snapshot in history[N-1]. | COMMENT |
| LOW | src/gui/game/GameModel.cpp | 481 | // Snapshot freshly placed in history[N-1]. | COMMENT |
| LOW | src/gui/game/GameModel.cpp | 501 | // i | history[i] | the logical Snapshot | relationships | | COMMENT |
| LOW | src/gui/game/GameModel.cpp | 521 | // | COMMENT |
| LOW | src/gui/game/GameModel.cpp | 541 | // | | accompanying history[i] | | | COMMENT |
| LOW | src/gui/game/GameView.h | 1 | #pragma once | COMMENT |
| LOW | src/gui/game/GameModel.h | 1 | #pragma once | COMMENT |
| LOW | src/gui/game/GameController.cpp | 1 | #include "GameController.h" | COMMENT |
| 38 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | fonttool.py | 4 | CODE | |
| LOW | resources/serve-wasm.template.py | 5 | CODE | |
| LOW | resources/serve-wasm.template.py | 7 | CODE | |
| LOW | .github/prepare.py | 1 | CODE | |
| LOW | .github/prepare.py | 6 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | resources/serve-wasm.template.py | 48 | if (promise === undefined) {{ | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/gui/save/ServerSaveActivity.cpp | 318 | "\bt4. Do not spam.\bw As mentioned earlier, there are no standards for what counts as spam. Here are some examples th | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/graphics/Renderer.cpp | 1542 | //TODO: implement size | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | fonttool.py | 108 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | resources/serve-wasm.template.py | 113 | class MyHTTPRequestHandler(http.server.SimpleHTTPRequestHandler): | STRING |