diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-06 01:38:51 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-06 01:38:51 +0100 |
| commit | ae4b03ef6f5ef07dcc80affd6877d17fceee7d29 (patch) | |
| tree | ab57453a320c90c76eeda3ca291e382ec6413a86 /src/tests/test_3d_physics.cc | |
| parent | 3581fa88300f0208c83f0f687b18479979dad035 (diff) | |
feat(perf): Add toggle for GPU BVH and fix fallback
Completed Task #18-B.
- Implemented GPU-side BVH traversal for scene queries, improving performance.
- Added a --no-bvh command-line flag to disable the feature for debugging and performance comparison.
- Fixed a shader compilation issue where the non-BVH fallback path failed to render objects.
Diffstat (limited to 'src/tests/test_3d_physics.cc')
| -rw-r--r-- | src/tests/test_3d_physics.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tests/test_3d_physics.cc b/src/tests/test_3d_physics.cc index 84be333..010d245 100644 --- a/src/tests/test_3d_physics.cc +++ b/src/tests/test_3d_physics.cc @@ -194,6 +194,9 @@ int main(int argc, char** argv) { if (strcmp(argv[i], "--debug") == 0) { Renderer3D::SetDebugEnabled(true); } + if (strcmp(argv[i], "--no-bvh") == 0) { + Renderer3D::SetBvhEnabled(false); + } } #else (void)argc; |
