Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>It was talked about it a lot already, u can find even on Wiki the reasons...</p> <ul> <li>C/C++ for the game engine and all intensive stuff. </li> <li>Lua or Python for scripting in the game. </li> <li>Java - very-very bad performance, big memory usage + it's not available on Game Consoles(It is used for some very simple games(Yes, Runescape counts in here, it's not Battlefield or Crysis or what else is there) just because there are a lot of programmers that know this programming language). </li> <li>C# - big memory usage(It is used for some very simple games just because there are pretty much programmers that know this programming language).</li> </ul> <p>And I hear more and more Java programmers that try to convince people that Java is not slow, it is not slow for drawing a widget on the screen and drawing some ASCII characters on the widget, to receive and send data through network(And it is recommended to use it in this cases(network data manipulation) instead of C/C++)... But it is damn slow when it comes to serious stuff like math calculations, memory allocation/manipulation and a lot of this good stuff.</p> <p>I remember an article on MIT site where they show what C/C++ can do if u use the language and compiler features: A matrix multiplier(2 matrices), 1 implementation in Java and 1 implementation in C/C++, with C/C++ features and appropriate compiler optimisations activated, the C/C++ implementation was ~296 260 times faster than the Java implementation.</p> <p>I hope you understand now why people use C/C++ instead of Java in games, imagine Crysis in Java, there would not be any computer in this world which could handle that... + Garbage collection works ok for Widgets which just destroyed an image but it's still cached in there and needs to be cleaned but not for games, for sure, u will have even more lags on every garbage collection activation.</p> <p><strong>Edit</strong>: Because somebody asked for the article, here, I searched in the web archive to get that, I hope you are satisfied...<a href="http://dspace.mit.edu/bitstream/handle/1721.1/74613/6-172-fall-2009/contents/lecture-notes/MIT6_172F09_lec01.pdf" rel="nofollow">MIT Case Study</a></p> <p>And to add, no, Java for gaming is still an awful idea. Just a few days ago a big company that I will not name started rewriting their game <strong>client</strong> from Java to C++ because a very simple game(In terms of Graphics) was lagging and heating i7 Laptops with powerful nVidia GT 5xx and 6xx generation video cards(not only nVidia, the point here is that this powerful cards that can handle on Max settings most of the new games and can't handle this game) and the memory consumption was ~2.5 - 2.6 GB Ram. For such simple graphics it needs a beast of a machine.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload