Win Unity2020.3.20f1 build linux il2cpp Performance is bad

I have build a linux package as a DS Server, but Performance is bad

environment:
Unity: 2020.3.20f1
VMWare 16.0.0 build-16894299
Ubuntu 18.04

netcore3.1 and net6 is Better than il2cpp. why is this?

when I test by my gamecore logic, its bad 10x than net6 :eyes:

the c# source code and pure c++ source code in the Attacked Files

8011217--1030925--upload_2022-4-1_12-5-31.png


8011217--1030934--upload_2022-4-1_12-12-0.png

That is difficult to say in general, IL2CPP is not best for all work loads. As a first pass, make sure that the Unity player was built with C++ Compiler Configuration of “Release” to ensure that the C++ compiler provides a good optimization level.

Next, you may need to profile the code to understand the performance differences.

Thank you for your answer, I make sure is “Release” (the Attached Files Show), is there any documentation to guide how to profiler the produced il2cpp file?

You can use the Unity profiler: Unity - Manual: Profiler overview

Depending on your platform, you may be able to use a platform-specific profiler as well.

1 Like