ThreadHarmonizer analyzes Unity C# scripts, finds CPU-heavy code, and automatically integrates safe multithreading and Unity Job System optimizations.Find CPU-heavy code. Move suitable workloads off the main thread. Keep Unity-specific access safe.Instead of manually searching through your project for expensive calculations and determining what can safely run outside the main thread, ThreadHarmonizer analyzes your scripts and assists with the transformation.It is designed for workloads such as:• CPU-heavy calculations• Data processing• Filtering and sorting• Distance and proximity checks• Large loops and repeated calculations• Other workloads that do not require direct Unity API accessThreadHarmonizer does not blindly rewrite your project. It analyzes the structure and dependencies of your code and only offers transformations where an optimization is considered suitable.Project-Wide Script AnalysisScan your Unity project for scripts that may benefit from multithreading.ThreadHarmonizer analyzes your C# code and highlights optimization candidates, helping you find potential performance bottlenecks without manually inspecting every script in your project.Automatic Multithreading IntegrationThreadHarmonizer can transform suitable code to execute expensive workloads outside Unity's main thread.The goal is to reduce unnecessary main-thread work while keeping Unity-dependent functionality where it belongs.Instead of manually restructuring methods, separating data, managing worker-thread execution, and reconnecting the results to your MonoBehaviour, ThreadHarmonizer assists with the integration automatically.Unity Job System Integration — BetaSuitable scripts can also be transformed to use Unity's Job System.ThreadHarmonizer analyzes the candidate and generates the required Job System structures where supported.The Job System integration is currently in Beta and is actively being improved. Some scripts or project architectures may still require manual adjustments after optimization.Main-Thread Safety DiagnosticsMost Unity APIs cannot safely be accessed from worker threads.ThreadHarmonizer includes dedicated diagnostics that detect Unity main-thread-bound functionality used inside multithreaded code.This helps identify unsafe access patterns early and shows why certain parts of a script must remain on Unity's main thread.Diagnostics can help detect problems involving Unity-specific objects and APIs before they become difficult-to-track runtime issues.Safe RollbackBefore modifying a script, ThreadHarmonizer creates a snapshot of the affected file.If an optimization does not produce the desired result, you can restore the previous version without manually reverting generated changes.Experiment with different optimizations while keeping the original implementation recoverable.Local Processing — No AI RequiredThreadHarmonizer does not rely on generative AI to optimize your scripts.Code analysis and transformation are performed locally, allowing your source code to remain inside your development environment.No prompting, copying scripts into external services, or repeatedly regenerating code is required.Designed Around Unity's Threading RestrictionsThreadHarmonizer is not intended to move Unity API calls directly onto worker threads.GameObjects, MonoBehaviours, Transforms, rendering APIs, and many other Unity-specific operations must remain on the main thread.ThreadHarmonizer is designed around these restrictions and separates optimization opportunities from Unity-dependent functionality whenever possible.Important NotesNot every script benefits from multithreading.ThreadHarmonizer focuses on workloads where parallel or asynchronous execution can provide a meaningful advantage. Performance improvements depend on the workload, project architecture, and execution frequency.The automatic Unity Job System integration is currently in Beta. Some scripts may not yet be supported or may require manual adjustments after transformation.Generated optimizations should be tested and profiled in your project before being used in production.SupportIf you encounter an issue with analysis or automatic integration, please contact:contact@pumpkinsoftware.netWhen reporting an integration issue, including the affected script and a short description of the expected and actual result can significantly help with reproducing the problem.Setup Guide • DocumentationSUPPORTED OPERATING SYSTEMSWindowsLinuxMac OS (Silicon and Intel)AndroidSetup Guide • Documentation




