Skip to content

Remove dead JobSystem-guarded code and fix the README performance images - #68

Merged
duburcqa merged 1 commit into
Genesis-Embodied-AI:mainfrom
duburcqa:cleanup-dead-guarded-code
Jul 23, 2026
Merged

Remove dead JobSystem-guarded code and fix the README performance images#68
duburcqa merged 1 commit into
Genesis-Embodied-AI:mainfrom
duburcqa:cleanup-dead-guarded-code

Conversation

@duburcqa

Copy link
Copy Markdown
Contributor

Dead code

The JobSystem was already removed, but inert code guarded by #if 0 and #ifdef MADRONA_USE_JOB_SYSTEM (a macro that is never defined anywhere) still referenced the deleted JobID/JobManager types. Removed those blocks from:

  • include/madrona/context.inl (two blocks), include/madrona/custom_context.inl, src/mw/device/include/madrona/context.inl
  • src/core/context.cpp, src/core/worker_init.hpp

(All verified: the macro is never defined, no #else/live branch inside any removed block, live class layout comes from the untouched MADRONA_USE_TASK_GRAPH guards.)

Also dropped src/render/image_util.cpp — a lone STB_IMAGE_WRITE_IMPLEMENTATION unit with no stbi_write callers anywhere.

README

The earlier subsystem strip (#66) removed scripts/perf_benchmark/, which the README's Performance section linked for its two FPS images and documented in a benchmark subsection. Restored the two comparison images under docs/ and repointed them; removed the now-dangling benchmark subsection.

Validation

Cluster (RTX): fresh build + full 38 batch-render tests (test_batch_render / test_offscreen / test_camera) — 38 passed.

The JobSystem was already removed, but inert code guarded by '#if 0' and
'#ifdef MADRONA_USE_JOB_SYSTEM' (never defined) still referenced the deleted
JobID/JobManager types across context.inl, custom_context.inl, context.cpp,
worker_init.hpp and the device context.inl -- delete it. Also drop the unused
image_util.cpp (STB_IMAGE_WRITE with no callers).

The earlier subsystem strip removed scripts/perf_benchmark/, which the README's
Performance section linked for its FPS images and documented in a benchmark
subsection. Restore the two comparison images under docs/ and repoint them, and
drop the now-dangling benchmark subsection.
@duburcqa
duburcqa merged commit ea1f591 into Genesis-Embodied-AI:main Jul 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant