TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Why most of the Game Engines were written in C/C++?

5 点作者 sk2code超过 12 年前
I was going through the list of game engines on Wikipedia (http://en.wikipedia.org/wiki/List_of_game_engines) and was amazed to see that the primary programming language for most of them was C/C++.

5 条评论

mingpan超过 12 年前
Another factor is predictability. When you write a line of code in a low-level language like C, you have a reasonably accurate approximation of what the machine is actually going to do for you at that point. Moreover, things like memory management are manual and explicit, and you have a reasonably good idea of when they happen and how long they take. In comparison, a lot of higher languages have a significant and not necessarily predictable overhead in the runtime and/or VM.
ergest超过 12 年前
Uhm performance?
评论 #4972707 未加载
评论 #4970281 未加载
shrughes超过 12 年前
They don't have garbage collection. C++ is still the most capable no-garbage-collection language.
dotborg超过 12 年前
OpenGL/DirectX APIs are the reason
stewie2超过 12 年前
because they are the best languages.