jmvs

10 Quality requirements

Quality tree

Scenarios

Reference machine: Apple M1-class Mac, integrated GPU, 2560×1504 back buffer (Retina). Samples are in data/. Frame rates are measured with jmvs <file> --mode <id> --scheme chain --benchmark 5 (vsync off, continuous rotation).

ID Scenario Target Legacy Result (2026-11, macOS unless stated)
Q1 Open 1crn.cif (327 atoms) Rendered < 1 s after choosing the file Unknown Met: read and bonded in ~70 ms on first load
Q2 Open 1zpd.cif (19,789 atoms) in Balls mode and rotate Rendered < 3 s; rotation ≥ 60 fps Likely failing Met: loaded in 0.4–0.8 s (cold JVM); Balls 96 fps, Balls-and-sticks 108, Sticks 131, Ribbons 304, Cartoon 263. Stress test 1aon (58,870 atoms): Balls 43 fps, Ribbons 267, Cartoon 184
Q3 Switch colour scheme on 1zpd < 100 ms, no geometry rebuild Full rebuild Met by design: only colour buffers are rewritten (ADR 0007); not timed separately
Q4 Install and run on Windows and Linux Installer from CI starts and loads 1crn Failing (macOS natives only) Met: the release workflow installs the .msi (Windows Server) and .deb (Ubuntu), opens 1crn and writes a screenshot, using Mesa software OpenGL; the .dmg was checked the same way on a Mac. GitHub’s macOS runners have no hardware OpenGL, so there CI only checks that the app starts
Q5 Bond sets match RasMol rules Spatial-grid bonds equal reference all-pairs bonds for all samples Unverified Met: CovalentBonderParityTest
Q6 Open an invalid or truncated file Error dialog naming the file; previous structure still shown Failing (System.exit) Met: CifStructureReaderTest, ViewerControllerTest
Q7 Run core and scene tests on a machine without a GPU All pass in CI Partial Met: no GL dependency in jmvs-core/jmvs-scene tests
Q8 Add a new display mode One class + one registry entry; no changes to renderer or UI Partial Met: DisplayMode + Registry; menus are built from the registry
Q9 Bonding and loading 1zpd (excl. rendering) < 1 s O(n²) Met: ~0.1–0.2 s warm (LoadPerformanceTest, budget 3 s for CI)
Q10 Multi-chain helix/sheet assignment Secondary structure applied only to the named chain Incorrect (D2) Met: CifStructureReaderTest
Q11 Show the solvent-excluded surface of 4hhb (4,779 atoms) Surface shown < 3 s; UI responsive while computing No surfaces Met: ~0.25 s warm, 0.6–0.8 s cold (SurfacePerformanceTest); ribbons + SES 267 fps. 1aon: 1.2M triangles in 1–2 s, 107 fps at 70% opacity
Q12 Unannotated structure (AF-P69905-F1-model_v6-noss.cif) in Ribbons, Structure colouring Helices and sheets shown, assigned from the backbone No (all coil) Met: computed by default (Auto); 80–97% three-state agreement with the samples’ file annotation, ~50 ms for 1aon (ComputedSecondaryStructureGoldenTest)
Q13 4hhb, 1usc and the DNA 1bna in Cartoon Helix ribbons, arrowed strands, coil tubes; DNA backbone and bases No cartoon Met: CartoonModeTest checks section widths, arrowheads and base blocks; README gallery
Q14 Cryo-EM map emd_3488 (100³) with its model 5me2; drag the contour slider Contour follows the slider without blocking the UI; model sits in density No maps Met: ~50 ms warm per level, 0.2–0.6 s cold including zone colouring (SampleMapContourTest); 94% of Cα atoms above the recommended level (SampleMapGoldenTest)