Repository navigation
en quality debugging
中文 | English | Docs | Repository
This page covers the engine-side debugging entry points and the test system: how to run tests, where they belong, what CI covers, and which Windows regressions must be run locally.
| Target | CTest label | Purpose |
|---|---|---|
NullusUnitTests |
behavior |
Deterministic behavior and integration regressions |
NullusPerformanceTests |
performance |
Performance and stress tests, built on demand |
ReflectionTest |
none | Lightweight reflection pipeline smoke tool |
NullusPerformanceTests is neither built nor registered with CTest by default. Repeatable, deterministic regressions belong in the unit tests; performance measurements, stress scenarios, and real-asset validation belong in the performance tests, so the default behavior suite never depends on machine state.
- Asset import, database, artifacts, Prefabs, thumbnails, and resource lifetime
- Editor workflows, settings, shortcuts, input, panels, and tooling behavior
- Rendering, RHI, FrameGraph, shaders and materials, scene and visibility pipelines
- JobSystem, profiling markers, serialization, and other deterministic behavior across
Base,Core, andEngine
Reflection and MetaParser are a specific focus, including runtime registration verification for key types, generated content verification, and integration regressions that only surface at build time.
cmake -S . -B Build -G "Visual Studio 17 2022" -A x64 -DNLS_BUILD_TESTS=ON
cmake --build Build --config Debug --target NullusUnitTests ReflectionTest -- /m:4
ctest --test-dir Build -C Debug -L behavior --output-on-failureReflectionTest is built by that command but is a separate tool and is not part of the behavior label.
cmake -S . -B Build -G "Visual Studio 17 2022" -A x64 -DNLS_BUILD_PERFORMANCE_TESTS=ON
cmake --build Build --config RelWithDebInfo --target NullusPerformanceTests
ctest --test-dir Build -C RelWithDebInfo -L performance --output-on-failurePerformance conclusions must come from binaries rebuilt in the target configuration, and should report repeated measurements rather than a single run.
| Target | Best fit |
|---|---|
NullusUnitTests |
Machine-independent behavior assertions, subsystem contracts, fine-grained regressions |
NullusPerformanceTests |
Performance measurements, stress scenarios, real asset load |
ReflectionTest |
Pattern-level sentinel checks and the cheapest possible registration path check |
Do not let ReflectionTest grow a coverage list as long as the unit tests; the two will keep duplicating each other.
| Parameter | Effect |
|---|---|
NLS_BUILD_JOBS |
Overrides outer MSBuild parallelism |
NLS_MSVC_MP_JOBS |
Limits target-internal MSVC /MP processes |
NLS_ENABLE_MSVC_MULTIPROCESSOR_COMPILATION=OFF |
Disables target-internal parallel compilation |
NLS_ENABLE_PCH=OFF |
Disables precompiled headers to diagnose include order and macro leakage |
Precompiled headers should only carry stable base headers. Putting Assimp, ImGui, Windows, DX12, or a JSON library into the PCH hides public header coupling.
| Workflow | Coverage |
|---|---|
| Build Windows | Release configuration build |
| Build Linux | Debug and Release |
| Build MacOS | Debug and Release |
| Metal Threading Validation | Metal thread ownership validation |
Windows CI runs Release only, so Windows Debug regressions are a local responsibility. Cross-platform conclusions must come from an actual run on each platform, never inferred from Windows results.
The first tool for rendering issues is a RenderDoc capture, not a desktop screenshot. See Profiling and Graphics Debugging.
Breakpoints, process attach, and hot reload troubleshooting are in Script Debugging and Hot Reload.
Tools/StackDump provides a crash stack dump tool, which must be built first:
Tools/StackDump/StackDump.exeIn debug builds an assertion failure breaks directly with a call stack, which is far more useful than analyzing logs afterwards.
- Profiling and Graphics Debugging covers CPU and GPU time plus capture analysis.
- Build Options lists every switch.
Nullus Engine
中文
- 认识 Nullus
- 安装与快速入门
- 使用编辑器
- 场景与对象
- Prefab 工作流
- 资产与内容管线
- 渲染、材质与光照
- 大场景与资源管理
- 游戏逻辑与脚本
- 用户界面
- 动画与角色
- 物理与交互
- 音频、特效与媒体
- AI 与联网
- 平台、构建与发布
- 扩展与引擎架构
- 调试、性能与质量
- 参考手册
- 示例与发展路线
English
- Getting to Know Nullus
- Install and Quick Start
- Using the Editor
- Scenes and Objects
- Prefab Workflow
- Assets and Content Pipeline
- Rendering, Materials, and Lighting
- Large Scenes and Resource Management
- Gameplay and Scripting
- User Interface
- Animation and Characters
- Physics and Interaction
- Audio, Visual Effects, and Media
- AI and Networking
- Platforms, Builds, and Releases
- Extending the Engine
- Debugging, Performance, and Quality
- Reference
- Examples and Roadmap