⚙️

Performance Comparison: Unreal vs Unity

Aug 26, 2024

Performance Testing of Unreal Blueprints vs. Unity Visual Scripting

Overview

  • Conducted performance testing comparing Unreal Blueprints and Unity Visual Scripting.
  • Recreated tests for Unity in Unreal Blueprints.

Key Findings

For Loop Performance

  • Unreal Engine Blueprints: 5 times faster than Unity Visual Scripting.
  • Both are significantly slower than C#: almost 100 times slower than a For Loop in C#.

Addition and Multiplication

  • Unreal Blueprints are almost 10 times faster than Unity's Visual Scripting.
  • More efficient input values for nodes in Blueprints compared to Unity.

Overall Performance Comparison

  • Most operations in Blueprints are 5 to 10 times faster than in Unity Visual Scripting.
  • Notable performance issues in Unity with:
    • Paralleling Noise
    • Random Numbers
    • These operations are slower due to Unity using calls to C# for these functions, which is inefficient.
  • Unreal Blueprints do not encounter the same performance issues for these operations but are still around 10 times slower than C#.

Conclusions

  • Unreal Blueprints were expected to be closer to C# performance but results show they are still slower.
  • C# and C++ provide the best performance for games with many characters and complex operations.
  • Unity has room for improvement in Visual Scripting performance.

Final Note

  • If performance is critical for game development, prefer using C# or C++ over visual scripting solutions.