In my case the issue wasn’t there until switching to Java 5. We tested 1.5.0_01, _03, and _04 and the problem appears to be in all of those. The nature of the issue made it slow to find.
Sounds like you’re a little sensitive to this issue and personally I don’t care if you are or not, but I am not trying to be insulting or offensive about this so I apologize if you feel that way. But looking at the new games that are coming out with PS3 and XB360 and how game developers are going to take advantage of the multi-core processors by adding more multi-threading, gpgpu processing, etc. I still wonder if Java is up to speed. Maybe you’re right. I’m not saying you’re not. Like I said. This is just frank communication. I support the use of Java for gaming just like you. I just want to know that I have a fighting chance.
[quote]Edit: I take it back. There is one, and only one, way you could chnage the situation.
Write a killer AAA blockbuster hit title in Java.
One so good that Sony and Microsoft are both desperate to have it on their platform.
You do that and all the problems go away
[/quote]
This is a bit like the “who came first: the chicken or the egg” kind of situation, don’t you think?
Will some company (or group of indies) invest in writing a killer AAA title, hoping Sony, Microsoft and Nintendo are going to make java available on their platform?
Will Sony, Microsoft and Nintendo make java available on their platform, just in case someone would write a killer AAA title in java which they are dying to get on their platform?
I’m guessing the answer to both questions is “no”, leaving java in the current status quo.
The answer lies in looking at how the other guys bootstrapped it. Basically the owner of the technology pumped a ton of money into making sure they got their technology where they wanted it and that people used it. They also executed on their plans pretty quickly and even more importantly they got the hype machine running at full steam beforehand.
Without the bootstrapping from Sun you can more or less conclude it isn’t going to happen.
This is a bit like the “who came first: the chicken or the egg” kind of situation, don’t you think?
[/quote]
(The egg came first. Whatever layed the egg was not a chicken, the egg contained the genetic mutation that separated the chicken from whatever it’s parents were.)
I think Chris is saying that the Killer Game(s) must be written for PC/Mac/Linux and be so popular that the console makers want it ported to their systems, thus giving them incentive to have a Java Runtime on their console.
I think the PC game market is still there. It seems to be able to evolve faster than the console market, since PCs capbilities change more frequently than console capabilities. So the end result is that the most “cutting edge” games should show up on a PC first anyway. E.g. Doom 3.
Notice the frequency of the collections, and the rate at which the second set of numbers around the “->” grows.
This test generates no objects that should live longer than about one second. At least not in the test code itself. I think in the JRE code some long-lived objects are accumulatng… maybe some weak map or something?
(The egg came first. Whatever layed the egg was not a chicken, the egg contained the genetic mutation that separated the chicken from whatever it’s parents were.)
I think Chris is saying that the Killer Game(s) must be written for PC/Mac/Linux and be so popular that the console makers want it ported to their systems, thus giving them incentive to have a Java Runtime on their console.
[/quote]
Well it was me, not Chris, but spot on.
Two questions and pardon my ignorance at reading this output but ilamost nevre loo katt he raw GC dump like this…
(1) What happens if you DONT specify concurrent GC but just use the dafault (which is what I always run with.)
(2) Are those last numbers the pause? And th first the time it staretd at? If so, I see a hit of les then 2/100ths of a second every 20 to 40 seconds. Why is this a problem? Am I misreading something?
[quote]I think the PC game market is still there. It seems to be able to evolve faster than the console market, since PCs capbilities change more frequently than console capabilities. So the end result is that the most “cutting edge” games should show up on a PC first anyway.
[/quote]
Good point, and sure the PC market is still there. But maybe one good reason those ‘Cutting Edge’ games were written in a language like C/C++ is because then they have a chance to be portable to consoles later? When I look at the shelves, I think AAA titles are a minority on PC’s compared to consoles even though PC’s are generally more capable.
Being both cutting edge and daring (e.g. dev. in java) is maybe a bit much to ask? As far as I can see, ‘daring’ is still a word investors don’t like very much.
[quote] E.g. Doom 3.
[/quote]
I see your point, but Doom3 is a bad example. It was going to sell in huge numbers anyway even though it would be PC only at first, having the ID/John Carmack names on their side. So there was virtually no risk involved.
Using java will always be an added risk of losing market potential as long as there’s no java on consoles.
Good point, and sure the PC market is still there. But maybe one good reason those ‘Cutting Edge’ games were written in a language like C/C++ is because then they have a chance to be portable to consoles later?
[/quote]
I really don’t think so. Generally porting something cutting edge to a console requries pretty ,ajor rewriting since up til now the graphics hadrware has been so unique on the consoles.
Rather, I think they are coded in C/C++ because almost everything is still. And for the same reasons-- its a known quanitity. It takes a brave person to try new tools on a game project, especially one that is also trying to cut new technical ground in other areas.
Hmm. i dont see that at all. I see something else-- the accessability of the PC ADDS a flood of lower grade titles to the shelves. Take those away so they dont distract yo uand I thik the total number of AAA titles on any one paltform, PC or Console, is about the same.
Take awy from Consoles the numebr of AAA title that are ports of older PC AAA titles and I thin kthe PC proibably pulls out ahead by a tiny bit (but not a lot today. This was more true in the past.)
HOWEVER to get to the nub of SWP’s point, look at where the new ground is being cut, and youll generally see it on the PC first.
And here I agree. It IS a lot to ask. But thats what being on the cutting edge is about. The risk adverse dont do it.
I see your point, but Doom3 is a bad example. It was going to sell in huge numbers anyway even though it would be PC only at first, having the ID/John Carmack names on their side. So there was virtually no risk involved.
Using java will always be an added risk of losing market potential as long as there’s no java on consoles.
[/quote]
No, your missing the other side of the equation.
If its a big enough hit on the PC it will force there to be Java on consoles.
To use your own example, if DOOM3 was in Java, do you think we’d have Java on
all the consoles today? I sure as hell do.
The question is, are you willing to bet on being that big a hit?
[quote]I really don’t think so. Generally porting something cutting edge to a console requries pretty ,ajor rewriting since up til now the graphics hadrware has been so unique on the consoles.
[/quote]
Sure, but at least it can be done.
[quote]Rather, I think they are coded in C/C++ because almost everything is still. And for the same reasons-- its a known quanitity. It takes a brave person to try new tools on a game project, especially one that is also trying to cut new technical ground in other areas.
[/quote]
Yes I agree it’s probably the most important reason. But don’t you think portability is still a consideration to stick with C++ and not go for java?
No, I’m not missing the point, I’m just adding to the discussion. Maybe just to get my own views clear
I agree 100% with you here, but I think it was a bad example because there was no point for Doom3 to be written in java. There was no risk in Doom3 because they are no new players and they had a huge codebase at their disposal, Doom3 being just an incremental step in the ID FPS range (not denying it is rather cutting edge).
I’d rather take Farcry as an example. Or Half-Life 2 (Because afaik, they created a completely new engine anyway, so java could have made sense there).
Well it really depends on how muich of that cdoe was brand new v. just an incremental improvement.
I agree that having a workable existing codebase lessens your advantage in changing any technologies
at all because there is a cost in codebase loss. At some point though you hit an inflection point anyway
wher you DO have to throw out a large portion of your codebase. Thsoe are good times to evaluate
new technologies.
Makes sense to me, and the same logic still applies. IF Half-Life2 had been a Java program then there is no doubt Sony would do everything in their power to make sure there was a Java VM available to run it.
If I were doing a game today where I had idnetified one of my primary targets as a console then yes, the irionic
thing today is that in that case Java loses in the portability area.
If I were doing a game whre my primary target was the desktop then I dont think I’d worry about this. If my game is a big enough hit to warrant the costs of targeting a console as an after-thought then I’d assume I’ll have the leverage to demand Java.
The big thing to remember here is that, unelss I design up front for the limits and peculiaritites of both console and PC, IMO the work of doing such a port wil be enormous no matter what. Its going to likely mean major redesign of both the graphics system and the user interface so its not going to happen unless Im a mega-hit.
Frankly, if all else failed, a port could be a completely new graphics engine in C for the platofrm, and a PD Java interpreter for the game logic. I dont think doing such an after-thought port of a C program will be any less work.
I just wanted to throw in an article from next genration, citing Valve boss Gabe Newell on porting code to the next generation of consolses (xbox360, ps3) with a multicore processor architecture:
[quote]Technologically, I think every game developer should be terrified of the next generation of processors. Your existing code, you can just throw it away. It’s not going to be helpful in creating next generation game titles
[/quote]
IMHO this is another good reason for relying on sophisticated VMs / Runtimes, which let game developers focus new algorithms and game concepts instead of bugging with each different hardware architecture.
Yeah, the next generation your gonna have 3 choices…
(1) Use a VM built by rocket scientists
(2) Use a game engine built by rocket scientists
(3) Go back to school for an intensive course in rocket science.
That being said, ofcourse Valve has a vested interest in people going to engines. Nonetheless I dont think hes being
totally phony.
Its an opportunity for the right tehnology, theres no doubt about that. The question that stands is when will one of those parties with a vested interest in making the VM technology happen, make it happen.
And you don’t know how badly I wish I had an answer for all of you to that question.