Author Topic: testing new plugin CpuSave by Edo(Mistral)  (Read 3643 times)

Offline Mistral

  • Administrator
  • Axe Thrower
  • *****
  • Posts: 409
    • View Profile
testing new plugin CpuSave by Edo(Mistral)
« on: February 16, 2022, 07:43:38 AM »
Some time ago i saw that my proc being fucked up every time i play w2. (at least 1 core of it always being 100% fucked)
so i maked a little plugin to fix.
Now everyone welcomed to testing this new plugin. Maybe it can help ur comps too.

Please check and say if works for you or not. (and your OC and comp specs)
For me and @iL worked all ok.
My comp have Win10 and AMD ryzen 5 proc.

will say again - its test.
maybe will not work for u.
so we want to check to what OC and proc those working.
need everyone help.

have source code here too.
maybe someone will have more ideas to improve.
(u can find patch.h in fois plugins sources https://forum.war2.ru/index.php?topic=5714.0)
« Last Edit: March 03, 2022, 04:01:11 PM by Mistral »

Offline iL

  • Administrator
  • Ogre Mage
  • *****
  • Posts: 1653
    • View Profile
Re: testing new plugin CpuSave by Edo(Mistral)
« Reply #1 on: February 16, 2022, 07:59:50 AM »
Also, in addition:
1. this plugin work alone or together with 2 prevouis ones: CpuSaveC.w2p and CpuSaveG.w2p
No conflicts with them, works fine together, but works fine without other plugins also.

It should reduce CPU usage to almost 0 in menus, in game (single player, campaign, multiplayer, doesn't matter).
Should NOT help for bnet chat. Use CpuSaveC.w2p for chat.

Should NOT cause any lags.

2. tested with both GDI and OPENGL ddraw.dll. Works fine. Though hook calls approx 5 times faster with opengl ddraw. Same with widescreen version.
No idea whay is that so, probably some hook inside opengl ddraw.

3. sleep(1) should cause up to 15 ms delay on some windows, not sure, please, check. Works fine on Win 10 for Mistral and for me. Also works fine on win7 on old notebook for me also.
Thinking about to add timeBeginPeriod for that.

Let us know if something works improperly.
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 dannyldd

  • Grunt
  • ***
  • Posts: 225
    • View Profile
Re: testing new plugin CpuSave by Edo(Mistral)
« Reply #2 on: February 16, 2022, 04:08:58 PM »
it worked for me around 3% ... 2,5 - 3,5% average and even on battles. Great job there !! My 11 years old CPU is very grateful with you !!! Also it allows me to stream back again in 60FPS...

Really appreciate this great REMASTERED optimization update for warcraft 2 !


proof video where you can see cpu usage comments in:
=83
« Last Edit: February 18, 2022, 04:49:59 AM by dannyldd »

Offline Player

  • Axe Thrower
  • ****
  • Posts: 484
    • View Profile
Re: testing new plugin CpuSave by Edo(Mistral)
« Reply #3 on: February 18, 2022, 12:08:53 PM »
Wasn't really an issue for me, but it did work.  CPU usage was 7-8% before the plug-in and 0.3% - 0.4% after.  Nice job.