Planet M.U.L.E.
Planet Mule 1 => Bugs 1.2.1-3 => Topic started by: zerbalatarbu_fim on February 27, 2010, 16:16
Title: Linux very high CPU usage Post by: zerbalatarbu_fim 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. Title: Re: Linux very high CPU usage Post by: zerbalatarbu_fim 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%.
Title: Re: Linux very high CPU usage Post by: Pescado on February 27, 2010, 19:33 My guess is that CPU usage is somehow terrible because someone wrote a busy-wait into the code.
|