Repository navigation
Arcane v0.12.3
Added
- Text alignment —
drawText()now acceptsalign: "left" | "center" | "right"option for horizontal alignment relative to the given x position. Works with both bitmap and MSDF fonts. - Color mutating functions —
setAlpha(color, a),setRgb(color, r, g, b), andlerpColorInto(target, start, end, t)for zero-allocation color manipulation in hot loops. JSDoc perf warnings added torgb()andwithAlpha(). - Global particle cap —
setMaxTotalParticles(n),getMaxTotalParticles(),getTotalParticleCount()to enforce a memory ceiling across all emitters (default 10,000). Warns once at 80% capacity. - Frame profiler MCP tool —
get_frame_statsreturns{frame_time_ms, draw_calls, fps}. Slow-frame warning (>32ms) printed to stderr automatically. Available via HTTP inspector at/frame_stats. - Hot-reload watchdog — persistent watchdog thread detects stuck frames (>2s timeout), forces reload on next frame. MCP
hot_reloadtool bypasses blocked main thread directly viaAtomicBool. - Circle texture batching —
drawCircle()now renders a single anti-aliased sprite instead of ~80 scanline sprites. NewuploadRgbaTexture()API for uploading raw RGBA pixel data as textures. - Auto-assign free ports — MCP and inspector servers automatically find free ports instead of failing on conflicts.
Install: `cargo install arcane-engine`