Skip to content

Refactored computing charts step for parallel processing with 5 worker threadpool (same I/O)#34

Open
samcreviston wants to merge 1 commit into
JeffreyXiang:mainfrom
samcreviston:main
Open

Refactored computing charts step for parallel processing with 5 worker threadpool (same I/O)#34
samcreviston wants to merge 1 commit into
JeffreyXiang:mainfrom
samcreviston:main

Conversation

@samcreviston
Copy link
Copy Markdown

Issue: Curious your thoughts and enjoyed working on this! I use Modly with the Trellis2 GGUF model for 3D model generation from images, that relies on CuMesh for the chart computation, and I found it was on average taking 30 minutes at this one step, and now takes 3 minutes after this refactor for parallel processing of the already existing cluster chunk inputs into the already existing cluster chart step output.

Refactor solution: Implemented a performance-focused refactor of the UV unwrapping pipeline so that the chart computation is performed in parallel across already existing cluster chunks using a bounded worker pool (max 5 threads), while preserving a single global packing stage to prevent UV overlap regressions. This update includes thread-safe result collection into the same pre-existing outputs of the chart computation step, and robustness handling for any empty/non-generate clusters that can produce no mesh entry, preventing an atlas index crash. The chart-computation behavior and contract were preserved: no inputs or outputs were changed for the compute-charts step itself, and final assembled mesh/UV outputs remain in the same format. In short, this change targets throughput and stability only, without altering external pipeline semantics.

@samcreviston samcreviston changed the title refactored computing charts step for parallel processing with a 5 wor… Refactored computing charts step for parallel processing with 5 worker threadpool (same I/O) May 14, 2026
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