Page 1 of 2

Salem hogging CPU

PostPosted: Fri Oct 12, 2012 2:38 pm
by Scubasteve
This might just be me, but when I run Salem it will make multi-tasking pretty much impossible. Is Salem intensive on CPU or anything else?, I'm using enders btw.

Re: Salem hogging CPU

PostPosted: Fri Oct 12, 2012 3:25 pm
by Procne
Hmm, maybe it's connected...

Sometimes when I start Salem I get low fps and screen stuttering. It's not that bad, just a bit annoying. I have found out that when that happens it's enough for me to change CPU affinity for Salem and make it run on second core. I think Java runs it on first core by default, most likely sharing it with OS and other background stuff. It's as if Salem wasn't getting enough CPU power when running with other stuff on the same core.
I don't know if devs can do anything about it - maybe it's all up to JVM, but maybe main loop can be changed to be more efficient?

I'm using Java 6 x86 on Windows 7 Home x86 with core 2 duo T6600.
Usually, my CPU usage is at around 10-20% on both cores before I run Salem.

Re: Salem hogging CPU

PostPosted: Fri Oct 12, 2012 3:27 pm
by Dallane
Scubasteve wrote:This might just be me, but when I run Salem it will make multi-tasking pretty much impossible. Is Salem intensive on CPU or anything else?, I'm using enders btw.


i have the same problem. it jacks my cpu and heat up to lvls that i see from new games.

Re: Salem hogging CPU

PostPosted: Fri Oct 12, 2012 5:31 pm
by MagicManICT
That's just Java. I've got other Java games that run like that and I've got some Java games that are relatively well behaved when it comes to multitasking.

Re: Salem hogging CPU

PostPosted: Fri Oct 12, 2012 5:40 pm
by staxjax
nfc why this happens, it has bugged me forever. I have 64bit system, 64bit java, and Java runs at 50% CPU power forever. I have seen this before when trying to run 32bit programs on 64bit system, but never with 64bit programs. Changing the affinity to utilize only the 2nd core didnt really do **** for me either.

edit: forgot to mention, I have another computer that is exact same setup but it is all 32bit and it doesn't have this problem.

Re: Salem hogging CPU

PostPosted: Fri Oct 12, 2012 6:08 pm
by Procne
staxjax, if you have 2-core CPU then 50% usually means that one core is fully utilised. Are you sure it's not that?
If your second PC has only 1 core CPU then it will most likely fully use this 1 core.

As a matter of fact, when I don't have FPS drops, Salem uses only around 25% of CPU (that is 50% of one core). With FPS drop usage jumps to 50% (100% on one core)

Re: Salem hogging CPU

PostPosted: Fri Oct 12, 2012 6:12 pm
by staxjax
They are both the exact sames systems, but one is 64bit. The 64bit always runs salem at 50% cpu usage. I don't have any performance issues, and the game runs fine...its just annoying cuz the fan runs more than it should.

Re: Salem hogging CPU

PostPosted: Sat Dec 01, 2012 1:30 am
by Nixman
Sorry to bump an oldish thread but I'm suffering from this too, any kind of client restart, switching characters etc will result in 2 second stutters (as in every 2 seconds the FPS plummets and rises again) The only way I can sort it out is by rebooting my computer.

Also running 64bit windows 7, and also seeing 50% cpu usage on dual core which is weird in itself, normally its like 25%, im wondering if this is Salem/Java basically capping out 1 cpu.

I don't have this problem on other java applications tho.

Re: Salem hogging CPU

PostPosted: Sat Dec 01, 2012 8:32 am
by Mtibbs1989
I've noticed that my CPU is put under a lot of stress in Java games, all I can say is that they're never optimized properly. My CPU right now is shooting through the roof, and I have an 8 core at 3.4 GHz. There's no reason my computer should be using 40% just for this game. I can easily compare this game to running Minecraft on extreme draw distance from Optifine, Tekkit mod, with a 512 texture pack.

Lets all cross our fingers that they'll optimize the game before the commercial release. :D

Re: Salem hogging CPU

PostPosted: Sun Dec 02, 2012 7:59 am
by JinxDevona
I don't know my bits and pieces, but I run on a mac duo core and I've had trouble running the net (wiki) or anything else while Salem is running on any client. This wasn't the case for H&H, in fact I almost always had wiki on one page and H&H on another.