Java/H&H CPU Usage

The worst monsters in the Hearthlands warp the fabric of space and time..

Java/H&H CPU Usage

Postby Truth0 » Thu Dec 01, 2011 8:40 pm

I recently began playing again and convinced a few people to join me. They're too shy or lazy to make a thread, so I'm doing it for them. Out of the four of us, two of us can play fine. The other two experience massive CPU usage under Java (for H&H), near to or at 100%. One of them can play BF3 on ultra, and the other can run most modern games on medium to low. Obviously even the worst of computers should be able to handle H&H, therefore something is wrong. The question is what. Taking all suggestions...

Thanks.

Edit: I've told them both to check to see if they have the newest java update and to uninstall+reinstall Java as a basic possible solution.
Truth0
 
Posts: 100
Joined: Thu Dec 09, 2010 5:12 am

Re: Java/H&H CPU Usage

Postby sabinati » Thu Dec 01, 2011 9:08 pm

make sure they have latest video drivers from manufacturer
User avatar
sabinati
 
Posts: 15513
Joined: Mon Jul 13, 2009 4:25 am
Location: View active topics

Re: Java/H&H CPU Usage

Postby Truth0 » Fri Dec 02, 2011 12:14 am

Why would that hurt their Java and not anything else? I will let them know, however. I also spent some more time skimming past threads and it seems others have had this problem and there was no fix to it.
Truth0
 
Posts: 100
Joined: Thu Dec 09, 2010 5:12 am

Re: Java/H&H CPU Usage

Postby boshaw » Fri Dec 02, 2011 1:33 am

OpenGL 1.1
User avatar
boshaw
 
Posts: 1590
Joined: Tue Jun 01, 2010 10:22 pm

Re: Java/H&H CPU Usage

Postby Truth0 » Fri Dec 02, 2011 3:03 am

What does that mean?
Truth0
 
Posts: 100
Joined: Thu Dec 09, 2010 5:12 am

Re: Java/H&H CPU Usage

Postby sabinati » Fri Dec 02, 2011 3:23 am

complicated computer shit. just install the latest drivers.
User avatar
sabinati
 
Posts: 15513
Joined: Mon Jul 13, 2009 4:25 am
Location: View active topics

Re: Java/H&H CPU Usage

Postby loftar » Fri Dec 02, 2011 4:10 am

Truth0 wrote:Why would that hurt their Java and not anything else?

As one potential explanation, it might not be Java, but OpenGL (as opposed to DirectX). In particular Microsoft's own drivers obviously have tend to have much worse support for OpenGL that for DirectX.
"Object-oriented design is the roman numerals of computing." -- Rob Pike
User avatar
loftar
 
Posts: 9045
Joined: Fri Apr 03, 2009 7:05 am

Re: Java/H&H CPU Usage

Postby MagicManICT » Fri Dec 02, 2011 6:02 pm

loftar wrote:
Truth0 wrote:Why would that hurt their Java and not anything else?

As one potential explanation, it might not be Java, but OpenGL (as opposed to DirectX). In particular Microsoft's own drivers obviously have tend to have much worse support for OpenGL that for DirectX.


Not just that, but nVidia and ATI (AMD) are both horrid about providing good OpenGL support for their desktop cards. If you want great OpenGL support on Windows, you pretty much have to pony up the money for a workstation level card (which won't hardly support DirectX).
Opinions expressed in this statement are the authors alone and in no way reflect on the game development values of the actual developers.
User avatar
MagicManICT
 
Posts: 18436
Joined: Tue Aug 17, 2010 1:47 am

Re: Java/H&H CPU Usage

Postby christhemad » Mon Dec 05, 2011 11:54 pm

yes im old pc but can still play c&c 4 fine and red alert 3 and star craft 2 fine abit on low but they dont hang or lag or anything but on here its 100% cpu useage and lag city but i do have an old ati all in wounder 9600 pro video card
christhemad
 
Posts: 39
Joined: Mon Sep 05, 2011 4:40 am

Re: Java/H&H CPU Usage

Postby MagicManICT » Tue Dec 06, 2011 2:02 am

christhemad wrote:yes im old pc but can still play c&c 4 fine and red alert 3 and star craft 2 fine abit on low but they dont hang or lag or anything but on here its 100% cpu useage and lag city but i do have an old ati all in wounder 9600 pro video card


Here's the deal:

In a DirectX game, the processor doesn't do too much other than regulate data flow to the various devices, thus leaving it free to do this like AI processing, pathfinding, and such. Also, the program is processed in machine code (basically: one instruction-one machine cycle), which is magnitudes faster than how Java works.

With Java programs, the developer compiles the code, but the resulting object code is still basically text. It's just packed down to a form that's faster than just plain text interpretation (like old-style BASIC) (one instruction can be hundreds or even thousands of machine cycles). This is what significantly sucks processor time and why you haven't see too many 3D programs in Java. The ones out there are five to ten years behind the visual standard. However, HnH is an alpha program and so isn't even CLOSE to properly optimized meaning you're going to be going even slower than a release version of an equivalent tech game.
Opinions expressed in this statement are the authors alone and in no way reflect on the game development values of the actual developers.
User avatar
MagicManICT
 
Posts: 18436
Joined: Tue Aug 17, 2010 1:47 am

Next

Return to Bugs

Who is online

Users browsing this forum: Claude [Bot], Semrush [Bot] and 0 guests