Relative Content

Tag Archive for c#cunity-game-enginerust

Performance of native C#, Rust and C/C++ within Unity

I’m trying to create a processing-intensive application within Unity. So, I decided to implement the most intensive operations in faster compiled languages. For this purpose, I decided to conduct a simple test: three implementations of a function that calculates n prime numbers, one native in C# within Unity, another in Rust, and another in C, and to measure their performance for a million numbers and time them using Stopwatch.