- 最后登录
- 2021-9-15
- 注册时间
- 2011-7-15
- 阅读权限
- 100
- 积分
- 50625
  
- 纳金币
- 53202
- 精华
- 32
|
问:c#不是性能比较低吗,unity3d为什么选择mono c#来开发内核呢?为什么不用c++呢?c++编写游戏引擎不是性能更高吗?
答:底层大部分肯定是C/C++的
附上老外回答:
Is Unity Engine written in Mono/C#? or C++
The Unity***ntime is written in C/C++. This***ntime is used in any build you create using the editor - for webplayers and plugins it is installed separate from your build, whereas it is included in it for stand-alones and other platforms such as iPhone and Wii.
The editor is built on the Unity***ntime and additionally includes editor-specific C/C++ binaries.
Wrapped around the Unity core is a layer which allows for .net access to core functionality. This layer is used for user scripting and for most of the editor UI.
|
|