Author Topic: War2 100% of 1 core CPU load - CPU Savior, version 2  (Read 19076 times)

Offline iL

  • Administrator
  • Ogre Mage
  • *****
  • Posts: 1653
    • View Profile
War2 100% of 1 core CPU load - CPU Savior, version 2
« on: February 15, 2015, 06:04:51 PM »
The problem: war2 always uses 100% of 1 core CPU.

Based on the same project by R1CH for StarCraft.
Thanks to xboi209 for idea and link to that project.
My research for war2 addresses in memory.

The only problem is still active is in chat CPU highload (inherited from starcraft project). In other menus and in game CPU usage reduced to almost 0.

Start this console application before or during the game. It will wait until you run war2 and injects into it when it's running. Don't close it until exiting war2. It will close itself after war2 is closed.
That's just an alpha version. Test it, report if it works fine or any existing bugs and i'll include it to the next loader version probably.

Here's the link: ftp://ftp.war2.ru/war2/utils/cpusavior_il.rar
Updated. Version 2 is here:
ftp://ftp.war2.ru/war2/utils/cpusavior_cmd.rar
« Last Edit: February 20, 2015, 06:47:00 AM by iL »
Need help to translate War2Combat to German, French, Italian, Polish or another language: http://forum.war2.ru/index.php/topic,4728.0.html
Please, contact me if you are interested in that.

Offline SmurfKinG

  • Sappers
  • ******
  • Posts: 991
    • View Profile
Re: War2 100% of 1 core CPU load - CPU Savior
« Reply #1 on: February 15, 2015, 06:21:48 PM »
didnt quite get what this thing does...

speeds things up?

Offline Teron-Gorefiend

  • Grunt
  • ***
  • Posts: 203
  • Greetings.
    • View Profile
Re: War2 100% of 1 core CPU load - CPU Savior
« Reply #2 on: February 15, 2015, 11:34:32 PM »
Wow. I will definetely try it il....War2 is such a core hogger. Eats up 100% CPU on single core and 50% on a dual core uselessly....At times, I have to close the game if I'm doing some heavy lifting on my PC (100+tabs open, video encoding etc)

Thank you for the great work.
This is the reason I ended it all.

The newb, the mad and the retired.

Offline iL

  • Administrator
  • Ogre Mage
  • *****
  • Posts: 1653
    • View Profile
Re: War2 100% of 1 core CPU load - CPU Savior
« Reply #3 on: February 15, 2015, 11:45:16 PM »
didnt quite get what this thing does...

speeds things up?
War2 is such a core hogger. Eats up 100% CPU on single core and 50% on a dual core uselessly....
this. And this thing fixes it (everywhere except chat)
Need help to translate War2Combat to German, French, Italian, Polish or another language: http://forum.war2.ru/index.php/topic,4728.0.html
Please, contact me if you are interested in that.

Offline Teron-Gorefiend

  • Grunt
  • ***
  • Posts: 203
  • Greetings.
    • View Profile
Re: War2 100% of 1 core CPU load - CPU Savior
« Reply #4 on: February 16, 2015, 12:10:00 AM »
This means if I want to have lower CPU resources used when not gaming/afk, I must create a private game and stay there?
This is the reason I ended it all.

The newb, the mad and the retired.

Offline iL

  • Administrator
  • Ogre Mage
  • *****
  • Posts: 1653
    • View Profile
Re: War2 100% of 1 core CPU load - CPU Savior
« Reply #5 on: February 16, 2015, 01:23:36 AM »
This means if I want to have lower CPU resources used when not gaming/afk, I must create a private game and stay there?
Probably yes...
Not sure, someone told that that CPU highload in chat resolved for starcraft already also. Let me know if someone find the source code, i hope i'll be able to port it to war2 then to resolve the problem totally...
Need help to translate War2Combat to German, French, Italian, Polish or another language: http://forum.war2.ru/index.php/topic,4728.0.html
Please, contact me if you are interested in that.

Offline Teron-Gorefiend

  • Grunt
  • ***
  • Posts: 203
  • Greetings.
    • View Profile
Re: War2 100% of 1 core CPU load - CPU Savior
« Reply #6 on: February 16, 2015, 09:09:49 AM »
@il: Does not work in chat screen
Works in game chat screen mode. HOWEVER, it creates a micro lag with mouse which results in some jittery mouse movements....
This is the reason I ended it all.

The newb, the mad and the retired.

Offline shesycompany

  • Death Knight
  • *********
  • Posts: 3587
  • retired, be in music section
    • View Profile
Re: War2 100% of 1 core CPU load - CPU Savior
« Reply #7 on: February 19, 2015, 09:49:08 AM »
lots of single core programs utilize 100% of a core.
back in my tinkering 2006-08 days i got war2.ru to do online with a 386 33 mhz.  editing the sprites to framskip in a mpq editor and making the tileset all black. so anyone with a old comp and want to mess with it there is some fun to be had :) .

sory had a flashback  :'(  (edit) pre 2000 programs maybe be more correct i know lots of my old games do but the newer single seem to throttle. would be a nice fix
« Last Edit: February 19, 2015, 02:32:02 PM by easycompany »

Offline iL

  • Administrator
  • Ogre Mage
  • *****
  • Posts: 1653
    • View Profile
Re: War2 100% of 1 core CPU load - CPU Savior
« Reply #8 on: February 19, 2015, 03:35:48 PM »
Updated. Version 2 is here:
ftp://ftp.war2.ru/war2/utils/cpusavior_cmd.rar

Thanks a lot to R1CH again, i contacted to him and he published his lastest version source code and also described how it works.
That helped me to release this new version also.

@il: Does not work in chat screen
Fixed this.

Works in game chat screen mode. HOWEVER, it creates a micro lag with mouse which results in some jittery mouse movements....
Probably fixed this also.
I have no idea how to check that mirco lag, but i think it should be fixed. Teron-Gorefiend, can you check that?

Tell me about any other bugs you found.
Need help to translate War2Combat to German, French, Italian, Polish or another language: http://forum.war2.ru/index.php/topic,4728.0.html
Please, contact me if you are interested in that.

Offline GaNzTheLegend

  • Best War2 Player Ever
  • Ogre Mage
  • ********
  • Posts: 1745
  • #1 on: Kali, Heat, Zone, Kahn, GameStorm, Bnet, RU
    • View Profile
    • Kali Hall Of Fame
Re: War2 100% of 1 core CPU load - CPU Savior, updated
« Reply #9 on: February 19, 2015, 10:04:44 PM »
if you have cpu problems with war2, you have a shitty computer
Kali IGL Stats

Offline xboi209

  • Grunt
  • ***
  • Posts: 80
    • View Profile
Re: War2 100% of 1 core CPU load - CPU Savior, updated
« Reply #10 on: February 20, 2015, 01:24:11 AM »
if you have cpu problems with war2, you have a shitty computer
You obviously don't understand what's happening. WarCraft 2, like other Blizzard games, runs through an infinite loop with no throttling. This means that the faster your processor can work, the more loops per second the game is running through.
It's highly unnecessary to run the loop a hundred times per second for example(especially when the FPS is locked to a number <30) and it'll shorten the lifetime of your processor if you make it work at 100% capacity for long periods of time.

So based on your logic, having a fast processor means you have a shitty computer, which I disagree.
« Last Edit: February 20, 2015, 01:29:21 AM by xboi209 »

Offline GaNzTheLegend

  • Best War2 Player Ever
  • Ogre Mage
  • ********
  • Posts: 1745
  • #1 on: Kali, Heat, Zone, Kahn, GameStorm, Bnet, RU
    • View Profile
    • Kali Hall Of Fame
Re: War2 100% of 1 core CPU load - CPU Savior, version 2
« Reply #11 on: February 20, 2015, 08:23:06 AM »
dude I have an I7-3930k 6 core processor and war2 only uses 7%.
Kali IGL Stats

Offline xboi209

  • Grunt
  • ***
  • Posts: 80
    • View Profile
Re: War2 100% of 1 core CPU load - CPU Savior, version 2
« Reply #12 on: February 20, 2015, 10:53:00 AM »
Well, I'm quite curious about your computer then. I can assure you however, 100% cpu usage is not uncommon and many people have had the same problem even with good processors.

Offline shesycompany

  • Death Knight
  • *********
  • Posts: 3587
  • retired, be in music section
    • View Profile
Re: War2 100% of 1 core CPU load - CPU Savior, version 2
« Reply #13 on: February 21, 2015, 09:46:23 PM »
100 / 6 = 16% it probably should use less than 7%, nice proc man.   good work il :)
« Last Edit: February 21, 2015, 09:55:27 PM by easycompany »

Offline tolsty

  • Peon
  • **
  • Posts: 27
    • View Profile
Re: War2 100% of 1 core CPU load - CPU Savior, version 2
« Reply #14 on: February 22, 2015, 11:45:01 AM »
i7-3770K CPU 3.5 GHz (junk - three years)
100/8=13%
f... fuel resources economy )))
« Last Edit: February 22, 2015, 01:04:13 PM by tolsty »