On Thu, 19 Jan 2012 04:09:06 +0100, Josh Berry <[email protected]> wrote:
And, again, read what you wrote. You read massive arrays of *primitives* into memory. Now... what if that primitive was an image and you'd like to treat it as such? In java, you're hosed. It is getting copied to the heap.
Perhaps I didn't understand the point, but in Java you can used memory mapped I/O and have it accessible outside of the heap.
Honestly I have also other questions. I only had a short experience with gaming (from the programming point of view) between 1992-1995, across my primary graduation, when I was writing for fun a flight simulator. It was DOS time, accessing memory beyond 640K was already a problem and I started with a drawLine() getting up to the (gamish) simulation of a US supercarrier getting attacked by a USSR Tupolef Bear. I did all the primitives by myself, also trying alternate ways than the state of the art, and I had things that other games of the time didn't have, such as full 3D cockpits and Doppler effect on digital audio (of course, the application had never been polished enough for being commercialized, since it was just fun). So, I have an idea of what pulling the CPU power from any bit means. But is it today still the same thing? I understand that games are much more complex, but we have specialized hardware for graphics and sound... Are really technical the reasons for preferring C# to Java? Or maybe the reason game developers prefer C# is simply the fact that Microsoft has created since many years a gaming business segment, and Sun just didn't?
-- Fabrizio Giudici - Java Architect, Project Manager Tidalwave s.a.s. - "We make Java work. Everywhere." [email protected] http://tidalwave.it - http://fabriziogiudici.it -- You received this message because you are subscribed to the Google Groups "The Java Posse" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/javaposse?hl=en.
