人气 226

[游戏程序] Java for Games: too slow? [复制链接]

九艺网 2017-3-10 17:01:48

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x
There is a mistaken belief amongst many commercial and hobbyist games developers that java is not suitable for games development. This is based on data that is 5 to 10 years old, and a misunderstanding of Java.  
If you take a C++ program, compile it, and wait ten years, it will still run just as slowly with all the same bugs it had 10 years previously. If you do the same with a java program, you will often find it runs faster - on the same hardware - ten years later, and with fewer bugs.
Up until 1996, Java was very slow. Until 1998, it was slow. Until 2000, it was fast enough for most apps, but still on average only 50%-75% of the speed of C++.
Since around 2002, Java on average is less than 5% slower than the best C++ code. For most applications (including games) java is within 1% of the speed of C++ code; many of the improvements of the last few years have concentrated on making up the performance gap, so that now - finally! - Java is a realistic practical alternative even in games development - where RAW SPEED is usually the most important factor.
Note: Java also finally has full access to hardware-accelerated OpenGL; see the JGF tech page 3D graphics section

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

QQ|手机版|小黑屋|九艺游戏动画论坛 ( 津ICP备2022000452号-1 )

GMT+8, 2024-4-19 20:42 , Processed in 0.098185 second(s), 23 queries .

Powered by Discuz! X3.4  © 2001-2017 Discuz Team.