ThreadHarmonizer

Get Started In Just a Few Minutes…

One workflow. The right optimization for each script.

ThreadHarmonizer turns performance work into a deliberate Unity workflow: analyze the whole project, choose the optimization that matches the code, validate the generated result, and keep every change reversible. It is built for teams that want more headroom without treating threading as a blind code conversion.

Multithreading

For suitable MonoBehaviour scripts, ThreadHarmonizer can introduce MonoBehaviourMultithreaded, register a ParallelUpdate path, cache main-thread values on the Unity side, and move only validated calculation work to workers. Unity API reads and writes stay where Unity requires them.

Unity Job System

For data-oriented workloads that can be batched safely, ThreadHarmonizer can plan Unity Jobs with suitable native data, scheduled work, and later synchronization. It avoids a fake job that immediately blocks with Schedule(...).Complete(), and rejects code that cannot be represented safely in a job.

Auto Integration

Auto Integration compares the available paths. It favors Jobs when batching and data layout create a real benefit, Classic Multithreading when Unity-facing structure makes it the stronger choice, and leaves a script alone when the result would not be meaningful.

Designed around Unity safety, not around promises.

ThreadHarmonizer knows that Transform, GameObject, physics, rendering, scene objects, and many Unity APIs are main-thread bound. Its project analysis, compile preflight, meaningfulness checks, and Visual Studio diagnostics make that boundary visible before unsafe worker code reaches your game.

When an isolated calculation really can run away from the main thread, ThreadHarmonizerManager.EnqueueOnWorker and EnqueueOnMainThread provide a clear hand-off. The latter is intentionally for the final Unity-side apply step; it is not a way to bypass Unity’s thread rules.

Start with confidence

  • Bootstrap the required runtime manager directly from ThreadHarmonizer. It creates one persistent ThreadHarmonizerManager that survives scene changes and owns the worker and main-thread queues.
  • Choose Auto, Classic Multithreading, or Unity Job System in the Optimizer.
  • Review the generated changes, test in your project, and use built-in snapshots, per-script restore, or source control whenever you want to roll back.

ThreadHarmonizer is for Unity developers who want practical performance improvements with readable generated code, explicit safety boundaries, and a reversible workflow.