jmvs

11 Risks and technical debt

Legacy risks and debts are listed in legacy §11; how each is resolved is tracked in ../modernisation.md. This section lists the risks of the target architecture and the migration.

11.1 Risks

# Risk Impact Mitigation Status
T1 macOS first-thread requirement for GLFW App fails to start on macOS -XstartOnFirstThread in run and the .dmg; launcher restarts the JVM otherwise (ADR 0004) Mitigated; verified with run, start scripts and the packaged app
T2 VisUI or ciftools-java incompatible with libGDX 1.14 / Java 25 UI or reader rework Verified when introduced Resolved; VisUI’s version check skipped for libGDX 1.14.2
T3 Instanced shaders behave differently across GPU drivers Rendering defects on some platforms GLSL 1.50 core; manual checks on all three OSes Partly mitigated: renders correctly on macOS (Apple GPU) and in CI on Windows and Linux (Mesa llvmpipe); not yet checked on Windows/Linux GPU drivers
T4 Gradle cannot run on the newest local JDK ./gradlew fails for developers Gradle 9.9 runs on JDK 17–27; daemon JVM criteria if a newer JDK appears; latest-JDK CI job (ADR 0001) Mitigated
T5 Visual regressions vs legacy (ribbons especially) Loss of fidelity Side-by-side comparison with legacy-app and README screenshots before cutover Closed at cutover: README compares each legacy screenshot with the new app; legacy-app stays runnable for further comparison
T6 Two JDKs and vendored jars during migration Slower, more complex build Time-boxed by ADR 0003 Resolved: legacy-app archived as a standalone build outside the root build and CI; its jars stay in the repository
T7 Unsigned installers Users blocked by OS security prompts Workaround in the root README.md; consider signing later Open
T8 No automated rendering tests Renderer regressions slip through --screenshot for manual checks; release workflow renders 1crn from each installer; screenshot comparison tests later Open
T9 LWJGL 3.3.6 overrides libGDX’s tested 3.3.3 Subtle backend incompatibilities Same 3.3 API line; full manual run of all modes; revisit when libGDX updates LWJGL Accepted
T10 Windows .msi packaging depends on WiX on the runner Release job fails Release workflow installs WiX 5 with dotnet tool; dry runs on pull requests that touch packaging Mitigated

11.2 Accepted debt

# Debt Reason
A1 Menus are drawn in the window, not in the macOS system menu bar Consequence of a single libGDX window (ADR 0005)
A2 No external plugin loading Not needed now (ADR 0006)
A3 Element radii remain RasMol values (not Cordero) Parity with RasMol (legacy ADR-0003)
A4 No level-of-detail for > 1M atoms Beyond target scenarios
A5 Installers bundle LWJGL natives for every platform (~10 MB) Simpler build; could be filtered per OS
A6 Ribbons are flat strips without arrowheads or tubes Parity with the legacy ribbons; the Cartoon mode has arrowheads, thickness and tubes (ADR 0019)
A7 Surfaces cover the whole first model, not selections; grid surfaces round SAS creases (a few % less area) and coarsen above 8M voxels Selections come in slice 9; accuracy is enough for viewing (ADR 0017)
A8 Density maps are read whole into memory, binned above 32M voxels; only MRC/CCP4 local files; zone colouring uses the first model Typical EM maps fit; EMDB fetch comes with slice 2 (ADR 0020)