War2.ru Slogan
News: If your graphics are broken you can fix with the new ddraw version.
** Read how to install it here **


Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Welcome to the forums! We're glad to have you here! :) You can register your account here, then feel free to introduce yourself in the Server.War2.ru board & let us know who you are on the server.

War2 100% of 1 core CPU load - CPU Savior, version 2 6586  23

Administrator Ogre Posts: 1395 Karma: +135/-9 *****

iL

  • Administrator
  • Ogre
  • *****
  • *
  • Posts: 1395
    • View Profile
*

iL

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
Sappers Posts: 991 Karma: +48/-109 ******

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?
Grunt Posts: 203 Karma: +41/-28 Greetings. ***

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.
Administrator Ogre Posts: 1395 Karma: +135/-9 *****

iL

  • Administrator
  • Ogre
  • *****
  • *
  • Posts: 1395
    • View Profile
*

iL

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)
Grunt Posts: 203 Karma: +41/-28 Greetings. ***

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?
Administrator Ogre Posts: 1395 Karma: +135/-9 *****

iL

  • Administrator
  • Ogre
  • *****
  • *
  • Posts: 1395
    • View Profile
*

iL

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...
Grunt Posts: 203 Karma: +41/-28 Greetings. ***

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....
Death Knight Posts: 3472 Karma: +89/-2 retired, be in music section *********

easycompany

  • Death Knight
  • *********
  • Posts: 3472
  • 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
Administrator Ogre Posts: 1395 Karma: +135/-9 *****

iL

  • Administrator
  • Ogre
  • *****
  • *
  • Posts: 1395
    • View Profile
*

iL

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.
Best War2 Player Ever Ogre Mage Posts: 1745 Karma: +55/-58 #1 on: Kali, Heat, Zone, Kahn, GameStorm, Bnet, RU ********

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
Grunt Posts: 80 Karma: +7/-0 ***

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.
Best War2 Player Ever Ogre Mage Posts: 1745 Karma: +55/-58 #1 on: Kali, Heat, Zone, Kahn, GameStorm, Bnet, RU ********

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%.
Grunt Posts: 80 Karma: +7/-0 ***

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.
Death Knight Posts: 3472 Karma: +89/-2 retired, be in music section *********

easycompany

  • Death Knight
  • *********
  • Posts: 3472
  • 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 :)
Peon Posts: 25 Karma: +0/-0 **

tolsty

  • Peon
  • **
  • Posts: 25
    • 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 )))