Njinn engine

A game engine built for explicit control and performance work.

Njinn is a custom 2D/3D game engine written in C for Sange. Memory lifetime, entity updates, skeletal deformation, rendering, tools, and the content pipeline are designed as one system, keeping costs visible when profiling and optimizing the runtime.

Architecture & performance

Make the expensive work visible.

Performance optimization starts with a repeatable workload and clear ownership of memory, updates, rendering, and resource lifetimes.

Memory performance

Explicit arena allocation

Permanent, transient, and level-scoped scratch buffers make allocation frequency, lifetime, and peak use visible. Bulk resets remove repeated per-object cleanup from known runtime phases.

CPU performance

Data-oriented game systems

Entity data, state machines, animation-driven combat, enemy logic, bosses, audio, and interface code stay close to the data so update costs and hot paths can be profiled directly.

GPU & rendering

Rendering tied to authoring

DirectX 11 powers the current renderer and exposes draw submission, resource use, skeletal deformation, effects, and CPU/GPU synchronization for targeted investigation.

Need an engine or rendering performance audit?

I establish a repeatable baseline, profile frame time and memory behavior, isolate the expensive path, implement a focused change, and verify it against the same workload.