cat projects/libraries/diorite.html SOL.VIN JOURNAL v1.47-prod [ MFET2 ]

PROJECT // Diorite // Libraries

Diorite

2026-09-30

High-priority 2D and 3D debug drawing plugin and zero-allocation frame DSL for Godot Engine 4.8+ via Lapis.

Diorite is a high-performance debug drawing plugin and immediate-mode DSL for Godot Engine 4.8+ powered by the Lapis Crystal toolchain. It provides both a node-based scene workflow and a zero-allocation frame-based DSL for real-time spatial visualization and telemetry.

Core Capabilities:

  • High-Priority Immediate-Mode Rendering: Renders 3D debug primitives via unshaded StandardMaterial3D with depth testing disabled at render_priority = 127, and 2D canvas primitives on an overlay CanvasLayer at layer = 128, z_index = 4096.
  • 35+ Geometric & Spatial Primitives: Comprehensive suite of 3D shapes (lines, boxes, spheres, cylinders, cones, capsules, grids, camera frustums) and swept shape casts (SphereCast3D, CapsuleCast3D, BoxCast3D, Catmull-Rom splines, Cubic Bézier curves).
  • Real-Time Data Visualization: In-game HUD data charts including 2D/3D pie/donut charts, bar charts, radial gauges, and multi-series scrolling telemetry sparklines with threshold limit markers.
  • Channel Filtering & Local Transforms: Logical category filtering (DebugDraw.channel("ai")) to selectively toggle debug layers, and nested local transform stacks (DebugDraw.with_transform) to draw relative to moving nodes without manual matrix math.
  • Zero-Allocation Performance: Optimized Crystal geometric builders delivering 15+ million operations per second with zero per-frame heap allocations.
SKILLS USED:
Crystal Godot 4 Game Engine Development Simulation