Games in Progress: 3 | Players logged in: 6 | Players Registered: 37413 | Games Played Total: 68649
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Linux very high CPU usage  (Read 375 times)
zerbalatarbu_fim
Mule Forum Newbie
*
Posts: 2


View Profile
« on: February 27, 2010, 16:16 »

MULE is using ridiculous amounts of CPU on my Linux box.  I have a 2 GHz Core2Duo, and right now MULE is using 117% CPU (where 100% = 1 core).  Funny thing is, I'm just sitting at the beginning screen waiting for players to join the game.  Nothing else is happening.

During gameplay, particularly during auctions and player movement, it sometimes goes as high as 193%.  This causes the graphics to stutter and I miss out on things.

I'm guessing my version of Swing (or whatever you used as a display library) lacks hardware acceleration.  It says 60fps at the bottom, but there's no reason a game like this needs 60fps... maybe you could include an option to throttle the frame rate?  I don't think most people could tell the different between 20 and 60 for M.U.L.E.
Logged
zerbalatarbu_fim
Mule Forum Newbie
*
Posts: 2


View Profile
« Reply #1 on: February 27, 2010, 17:50 »

Update: Switching from sun-java-6 to openjdk has vastly improved performance.  CPU usage is now around 29-70%.

Logged
Pescado
Prototype Tester
Mule Regular
***
Posts: 81


View Profile
« Reply #2 on: February 27, 2010, 19:33 »

My guess is that CPU usage is somehow terrible because someone wrote a busy-wait into the code.
Logged
Pages: [1]
  Print  
 
Jump to: