How erichchan999/deformer works
This C++ project compares four implementations of Houdini-style mesh peaking. The principal workflow opens a USD stage, extracts mesh topology and points, dispatches the same displacement operation through Eigen, std::thread, oneTBB, and CUDA, then writes the selected result back to USD. Tracy instrumentation supports performance comparison. The graph follows the calls visible in the sampled entry point and implementation files; CUDA kernel internals were not sampled, so their connection is documented by the CUDA host code rather than inferred from kernel details.
Main entry points: main.cpp Application entry · tracy Tracy instrumentation · DisplaceByNormalCuda.cpp CUDA host implementation · DisplaceByNormalEigen.cpp Eigen implementation
Components 13
USD mesh workflow
- USD input mesh
geometry/sphere.usd - Application entry
src/main.cpp - Mesh point and topology data
src/main.cpp - Exported USD stage
Displacement strategies
- Strategy interface
include/DisplaceByNormalStrategy.h - Eigen implementation
src/DisplaceByNormalEigen.cpp - std::thread implementation
src/DisplaceByNormalThreads.cpp - oneTBB implementation
src/DisplaceByNormalTBB.cpp - CUDA host implementation
src/DisplaceByNormalCuda.cpp - CUDA kernels
src/DisplaceByNormalCudaKernels.cu
Performance profiling
- Tracy instrumentation
submodules/tracy - Tracy profiler
Other components
- User
Connections 15
- User → Application entry: runs
README.md - Application entry → USD input mesh: opens
src/main.cpp - Application entry → Mesh point and topology data: extracts
src/main.cpp - Application entry → Strategy interface: creates
src/main.cpp - Application entry → Eigen implementation: dispatches
src/main.cpp - Application entry → std::thread implementation: dispatches
src/main.cpp - Application entry → oneTBB implementation: dispatches
src/main.cpp - Application entry → CUDA host implementation: dispatches
src/main.cpp - CUDA host implementation → CUDA kernels: launches
src/DisplaceByNormalCuda.cpp - Application entry → Exported USD stage: exports
src/main.cpp - Eigen implementation → Tracy instrumentation: instruments
src/DisplaceByNormalEigen.cpp - std::thread implementation → Tracy instrumentation: instruments
src/DisplaceByNormalThreads.cpp - oneTBB implementation → Tracy instrumentation: instruments
src/DisplaceByNormalTBB.cpp - CUDA host implementation → Tracy instrumentation: instruments
src/DisplaceByNormalCuda.cpp - Tracy profiler → Tracy instrumentation: connects to
README.md