Skip to content

VANILLAJS v3.5.0 β€” THE SILICON FORGE πŸ‘½βš™οΈπŸ•ΉοΈ

Latest

Choose a tag to compare

@EmergentMonk EmergentMonk released this 22 Nov 21:39
Immutable release. Only release title and notes can be modified.
9d95d74

Super FX Β· Bitplane Blitters Β· Raster Coprocessors

Modern hardware. Classic engineering. No unnecessary complexity.

VANILLAJS v3.5.0 introduces three original, experimental graphics-processing systems inspired by the hardware ingenuity of the 1980s and 1990s.

Drawing lessons from Nintendo's Super FX coprocessor, Commodore Amiga blitters, Atari STE graphics hardware and early arcade machines, THE SILICON FORGE brings fixed-point transformations, packed bitplane manipulation and deterministic raster effects into VANILLAJS.

These systems are implemented using native JavaScript, bounded memory, reproducible numerical contracts and independently verifiable browser evidence.

No proprietary ROMs, commercial game assets, hardware emulators or additional runtime frameworks are required.

The goal isn't to emulate old hardware. It's to rediscover the engineering principles that made it remarkable.


What's new

FX-PIPE-001 β€” The Graphics Coprocessor

Introduced in PR #153

An original Super FX-inspired graphics preparation module built around checked Q16.16 fixed-point arithmetic.

Features include:

  • Bounded 3Γ—4 affine transformation matrices.
  • Translation, rotation, scaling and shearing.
  • Coloured 3D triangle preparation.
  • Two-triangle 2D sprite cards.
  • Retained Float32 vertex buffers.
  • Deterministic geometry ordering.
  • Preflight validation and checked numerical bounds.
  • Direct compatibility with the existing WebGL1 Renderer.update() interface.

The new FxGraphicsPipe transforms integer Q16.16 source coordinates into interleaved XYZ/RGB vertex data.

Capacity is explicitly bounded at 65,532 vertices, with no implicit buffer growth.

An independently implemented BigInt numerical oracle verifies the resulting Float32 output bytes.

Evidence

  • Seven dedicated numerical tests passed.
  • Actual Chromium WebGL1 vertex and rendered-pixel parity verified.
  • Bounded sprite-card workloads evaluated at 64, 256 and 512 cards.
  • Source-bound benchmark and browser evidence recorded.

The new pipeline offers a reusable graphics-preparation alternative. It does not replace the WebGL renderer, implement a Super FX CPU or modify authoritative simulation.


BLIT-001 β€” The Bitplane Forge

Introduced in PR #154

Inspired by the bitmapped graphics operations of the Commodore Amiga, Atari Mega ST/STE and early arcade systems.

BLIT-001 provides a pure-JavaScript, packed 16-bit graphics processor with deterministic pixel operations.

Features

  • One to four colour bitplanes.
  • Up to 16 indexed colours.
  • Maximum surface dimensions of 512 Γ— 384 pixels.
  • Owned Uint16Array bitplane storage.
  • Indexed pixel reading and writing.
  • Block copying with destination clipping.
  • Masked sprite compositing.
  • Overlap-safe source copying.
  • Rectangular fills.
  • Integer Bresenham line drawing.
  • Palette-based RGBA export.

Three-input Boolean minterms

BLIT-001 supports all 256 possible 8-bit minterm selections for three-input Boolean pixel operations.

Two especially useful operations are:

BLIT_COPY β€” 0xCC

Copies the selected source bitplane data.

BLIT_COOKIE_CUT β€” 0xCA

Performs masked sprite compositing, preserving the destination background wherever the mask is unset.

This makes it possible to construct traditional arcade-style software graphics using explicit and testable pixel operations.

The implementation supports arbitrary horizontal offsets across 16-bit word boundaries and protects overlapping copies from read/write corruption.

Bitplane Forge laboratory

A new interactive browser demonstration includes:

  • An original procedural landscape.
  • A masked moving aircraft sprite.
  • Overlap-safe bitmap copying.
  • Deterministic frame reset.
  • Pixel and memory diagnostics.

All visual data is generated locally.

Evidence

  • All 256 Boolean minterms checked against an independent reference.
  • Seven dedicated numerical tests passed.
  • Browser-tested sprite movement, overlapping copy and reset.
  • Reproducible pixel hashes and SHA-256 evidence.
  • Malformed and accessor-based input rejection tested.

Important: This initial processor uses packed 16-bit storage but performs general Boolean compositing per pixel. It is not claimed to have hardware DMA throughput or word-wide accelerated blitting.


COPPER-001 β€” The Raster Conductor

Introduced in PR #155

A deterministic, original scanline presentation processor inspired by the Commodore Amiga's Copper coprocessor.

The system applies an ordered sequence of commands to indexed pixel data, enabling classic raster effects without requiring direct CRT beam timing or hardware registers.

Features

  • Sixteen-entry RGBA palette.
  • Up to 512 ordered scanline commands.
  • Per-scanline palette changes.
  • Signed horizontal scroll offsets.
  • Persistent palette and scroll state between scanlines.
  • Multiple commands on the same scanline.
  • Reusable RGBA output storage.
  • Strict validation of program input.
  • Repeatable display output.

Supported commands:

Palette update

Changes a selected palette entry beginning at a specified scanline.

Horizontal scroll

Changes the horizontal source-pixel offset, wrapping within each scanline.

Scroll offsets are bounded to βˆ’511 through +511 pixels.

The processor supports display dimensions up to 512 Γ— 384 pixels.

BLIT + COPPER composition

COPPER-001 can consume the indexed pixels produced by BLIT-001.

This creates a reusable presentation pipeline:

Bitplane graphics β†’ Indexed framebuffer β†’ Scanline commands β†’ RGBA output β†’ Browser display

The raster processor cannot modify the accepted source bitplanes or authoritative gameplay state.

Raster Conductor laboratory

An interactive demonstration provides:

  • Procedural mountain scenery.
  • Raster-style palette bands.
  • Adjustable horizontal scanline displacement.
  • Effect bypass.
  • Deterministic frame restoration.
  • Pixel checksum and buffer diagnostics.

Evidence

  • Seven dedicated scanline numerical tests.
  • Positive, negative and wrapped scroll reference cases.
  • Same-line command ordering.
  • Palette persistence and frame-reset verification.
  • BLIT source-data immutability checks.
  • Real Chromium visual-output comparisons.
  • SHA-256-sealed browser evidence.

This is not a cycle-accurate Amiga Copper emulator, hardware interrupt controller or programmable CRT display engine.


Architecture β€” Three Independent Graphics Systems

VANILLAJS now provides three distinct experimental graphics processing approaches.

Module Responsibility Inspiration
fx-pipe Fixed-point affine geometry preparation Nintendo Super FX
blit Indexed bitplanes and masked pixel manipulation Amiga / Atari STE / arcade blitters
copper Per-scanline palette and horizontal scroll presentation Amiga Copper

All three modules remain optional.

FX-PIPE feeds existing WebGL1 geometry buffers.

BLIT produces indexed or RGBA pixel data.

COPPER transforms indexed presentation data into scanline-dependent RGBA output.

They do not replace the existing graphics engine or alter physical game simulation.

Determinism and correctness

THE SILICON FORGE follows VANILLAJS's established engineering requirements:

  • Explicit numerical domains and resource bounds.
  • Finite memory allocation.
  • Strict input validation.
  • Rejection of invalid operations before publication.
  • Independently implemented numerical references.
  • Deterministic output ordering.
  • Source and evidence provenance.
  • Separation between graphics and gameplay authority.

The underlying physics, collision, input, AI and replay contracts remain unchanged.

FX-PIPE preserves its documented Q16.16 arithmetic contract.

BLIT validates its Boolean pixel operations against an independent reference.

COPPER validates scanline results against independently calculated pixel output.

No browser display state is permitted to become authoritative simulation state.


Browser laboratories

Two new experimental laboratories are included in the offline package.

BLIT-001 β€” The Bitplane Forge

demos/blit-lab/index.html

Explore masked sprite drawing, bitmap copying and indexed graphics.

COPPER-001 β€” The Raster Conductor

demos/copper-lab/index.html

Explore scanline colour changes, raster effects and horizontal scrolling.

Both use original graphics and locally available browser APIs.

The existing VANILLAJS applications and demonstrations remain available.

Verification and CI

All three feature PRs were implemented, reviewed and merged separately.

Completed milestones

PR Feature
#153 FX-PIPE-001 β€” Super FX-inspired graphics pipeline
#154 BLIT-001 β€” The Bitplane Forge
#155 COPPER-001 β€” The Raster Conductor

The BLIT and COPPER hosted workflows verified their numerical references, complete Node regression suites, offline package generation and real browser rendering.

The final COPPER candidate recorded:

  • 1,427 passing Node tests
  • 14 passing BLIT/COPPER numerical tests
  • 87 registered engine module contracts
  • Successful packaged browser pixel verification
  • Successful source-bound SHA-256 evidence checks

Historical-source CI correction

During implementation, the expanded Node regression checks exposed a missing historical Git object in shallow CI checkouts.

The ALIEN-MATH-006 tests required an exact historical baseline commit that the feature workflows had not fetched.

The correction added an explicit depth-one fetch of the immutable source commit and retained the existing frozen verification requirements.

No proof obligations, reference checksums or numerical acceptance rules were weakened.

Post-merge verification

21 of 21 GitHub Actions workflows passed on the final merged main commit.

No failed or pending workflows remained at verification.


Performance and limitations

THE SILICON FORGE introduces useful new graphics-processing primitives, but it does not automatically establish increased game frame rates.

Current evidence supports:

  • Exact transformed-geometry output.
  • Correct masked and Boolean pixel operations.
  • Deterministic scanline effects.
  • Successful real-browser rendering.
  • Reusable bounded buffers.
  • Reproducible CPU preparation observations.

Performance questions requiring further investigation include:

  • Full-game FPS changes.
  • Native GPU throughput.
  • End-to-end allocation and garbage-collection effects.
  • Pixel compositing throughput versus Canvas2D and WebGL shaders.
  • Performance across different browsers and hardware.

The v3.4.0 Allocation Observatory remains available for future profiling.

The historical machines provide architectural inspiration, not claims of hardware equivalence.

Compatibility

VANILLAJS v3.5.0 preserves compatibility with existing engine consumers.

No mandatory new runtime dependencies.

No changes to existing simulation or replay formats.

No automatic migration to the new graphics processors.

No change to the existing WebGL1 renderer API.

No replacement of the JavaScript garbage collector.

No new external network or cloud service requirements.

All three modules are experimental, opt-in capabilities distributed under Apache-2.0.

Games may adopt them selectively after independent compatibility and performance testing.


Future opportunities

THE SILICON FORGE creates a foundation for further original arcade-inspired research.

Potential next experiments include:

OBJECT-001 β€” The Sprite Controller

Retained object lists, deterministic sprite priorities, hardware-inspired positioning and scaling.

BLIT-002 β€” The Word Engine

Direct word-wide bitplane operations with verified equivalence to the existing pixel oracle.

COPPER-002 β€” Raster Scheduling

Expanded display-list capabilities and richer scanline effects without coupling simulation to presentation timing.

VECTOR-001 β€” The Vector Laboratory

Original vector-display line processing, transformation and bounded presentation effects inspired by early vector arcade machines.

These are proposed future investigations, not implemented v3.5.0 features.


Release provenance

Project: VANILLAJS

Version: v3.5.0 β€” THE SILICON FORGE

Previous release: v3.4.0 β€” THE ALLOCATION OBSERVATORY

Repository: https://github.com/QSOLKCB/VANILLAJS

PRs: #153, #154, #155

Release commit:

9d95d74b355ec17add32db0b55f0f71130f9c004

Full changes:

v3.4.0...9d95d74

Post-merge CI: 21/21 successful

Licence: Apache-2.0

Development: QSOL-IMC


VANILLAJS v3.5.0 β€” THE SILICON FORGE πŸ‘½βš™οΈπŸ•ΉοΈ

From fixed-point coprocessors to bitplane blitters and raster display lists.

The ingenuity of early computer graphics, reimagined as independently testable, reusable modern software.

QSOL-IMC β€” THIS IS NOT A PRODUCT. THIS IS INDEPENDENCE.

Modern convenience. Minimal dependencies. Old-school correctness.

Correctness outranks speed.

What's Changed

  • FX-PIPE-001 β€” Super FX-inspired bounded Q16 graphics staging by @EmergentMonk in #153
  • BLIT-001 β€” The Bitplane Forge (bounded masked raster processor) by @EmergentMonk in #154
  • COPPER-001 β€” The Raster Conductor (bounded scanline palette and scroll) by @EmergentMonk in #155

Full Changelog: v3.4.0...v3.5.0