jmvs

04 Solution strategy

Goal Approach ADR
Current, supported Java Java 25 LTS via toolchains; Gradle 9 0001
Replaceable renderer, testable core Modules with one-way dependencies; renderer-neutral scene data 0002, 0006
Low-risk migration Legacy app kept as a module until parity 0003
Cross-platform 3D libGDX on LWJGL3 with custom GLSL 0004
One-window UI Scene2D overlay; native file dialog 0005
Performance at ≥ 10k atoms Instanced spheres/cylinders; colour buffers separate from geometry; grid-based bonding 0007, 0009
Robust input ciftools-java; gzip and BinaryCIF 0008
Match RasMol results Keep RasMol rules and tables; parity tests legacy ADR-0003, 0009, 0012
Supply-chain hygiene Maven Central with checksum verification 0010
Robustness Typed exceptions, errors shown in UI 0011
Easy installation CI on three OSes; jpackage installers 0013
Configurable without code Typed config from classpath properties 0015

Layering: jmvs-app (UI, orchestration) → jmvs-render-gdx (GPU, input) → jmvs-scene (what to draw) → jmvs-core (what the molecule is). Each layer depends only on the one below through plain Java types.