为什么Java不适合游戏开发

Strawberry Cow Bear: why java sucks for game development
http://strawberrycowbear.blogspot.jp/2011/02/why-java-sucks-for-game-development.html

 

1. 不支持栈上对象,栈上只有指针

2. 自动垃圾回收。

In highly recursive code with no stack variables, not having control over the garbage collection can cause serious troubles, as described above.

没有栈上变量搞递归,又不能控制垃圾回收,会导致极其严重的问题。

 

对于即将普及的非堆模式的 fiber 来说,java 缺乏栈上变量这条可以说是死穴,话又说回来,一旦有了 fiber 和栈上变量,垃圾回收也就不再是自动而愚蠢的了。

 

3. 没有操作符重载

这个倒是无所谓。。。

 

Java 缺乏栈变量和不留余地的自动垃圾回收确实太毁灭了。

转载于:https://www.cnblogs.com/inshua/p/6150557.html

Although the number of commercial Java games is still small compared to those written in C or C++, the market is expanding rapidly. Recent updates to Java make it faster and easier to create powerful gaming applications-particularly Java 3D-is fueling an explosive growth in Java games. Java games like Puzzle Pirates, Chrome, Star Wars Galaxies, Runescape, Alien Flux, Kingdom of Wars, Law and Order II, Roboforge, Tom Clancy's Politika, and scores of others have earned awards and become bestsellers. Java developers new to graphics and game programming, as well as game developers new to Java 3D, will find Killer Game Programming in Java invaluable. This new book is a practical introduction to the latest Java graphics and game programming technologies and techniques. It is the first book to thoroughly cover Java's 3D capabilities for all types of graphics and game development projects. Killer Game Programming in Java is a comprehensive guide to everything you need to know to program cool, testosterone-drenched Java games. It will give you reusable techniques to create everything from fast, full-screen action games to multiplayer 3D games. In addition to the most thorough coverage of Java 3D available, Killer Game Programming in Java also clearly details the older, better-known 2D APIs, 3D sprites, animated 3D sprites, first-person shooter programming, sound, fractals, and networked games. Killer Game Programming in Java is a must-have for anyone who wants to create adrenaline-fueled games in Java.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值