.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

The Star & the Crescent- Save $9.00
winSPWW2- Save $6.00

   







Go Back   .com.unity Forums > The Camo Workshop > WinSPWW2
Notices


Reply
 
Thread Tools Display Modes
  #1  
Old March 27th, 2015, 03:46 PM

Anton Anton is offline
Corporal
 
Join Date: Jul 2008
Posts: 81
Thanks: 7
Thanked 12 Times in 6 Posts
Anton is on a distinguished road
Default CPU load

Hello all,

WinSPWW2 exerts 50% of my CPU power, which is 100% of a core, during any activity in the game including the mere pressing 'R' for rally. Is this intended and expected behaviour and does anybody else observe it on their machines?
Reply With Quote
  #2  
Old March 27th, 2015, 04:48 PM
Mobhack's Avatar

Mobhack Mobhack is offline
National Security Advisor
 
Join Date: Mar 2005
Location: Dundee
Posts: 5,958
Thanks: 465
Thanked 1,900 Times in 1,238 Posts
Mobhack is on a distinguished road
Default Re: CPU load

The original DOS game took 100% of the CPU, all the time, as did the original Windows conversion.

The windows rewrite will give some CPU time to other processes, when idle, but not all. It only does this as a courtesy to other Windows programmes that may be active. However if minimised, then it takes almost no CPU time, as with any other windows programme.

As its a game, it assumes that you are playing it as the primary purpose of running the computer at that time if it is on the screen. When its doing something, it grabs the CPU, and when its "idle" it will still grab it for screen updates several times a second.

Thus the game is not "idle" simply because the end user is not poking keys currently. It will be continuously pumping out screen updates, especially if the game map is visible.

Games are designed differently from office apps. They hog the CPU, unlike word processors etc - But I designed this one to let the office apps get a look in by giving it an OnIdle event!

If you really need that CPU time to do something else than play the game - then either shut the game down or minimise it to the task bar.

cheers
Andy
Reply With Quote
  #3  
Old March 27th, 2015, 05:17 PM
DRG's Avatar

DRG DRG is offline
Shrapnel Fanatic
 
Join Date: Mar 2005
Location: GWN
Posts: 12,498
Thanks: 3,967
Thanked 5,705 Times in 2,816 Posts
DRG will become famous soon enough
Default Re: CPU load

Game CPU load has never been an issue for me even when I was running it with a Pentium III on my old Dell. Even then I could have both games running, Paint Shop Pro running, SHPEdit running, EditPlus running and one or both MOBHacks idling . I don't even think twice about having winSPWW2 and winSPMBT running at the same time
Reply With Quote
  #4  
Old March 31st, 2015, 05:18 PM

Anton Anton is offline
Corporal
 
Join Date: Jul 2008
Posts: 81
Thanks: 7
Thanked 12 Times in 6 Posts
Anton is on a distinguished road
Default Re: CPU load

Quote:
Originally Posted by Mobhack View Post
The original DOS game took 100% of the CPU, all the time, as did the original Windows conversion.
MS-DOS is a single-process OS, so any program may be said to possess the CPU, although it may exert only a tiny portion of its calculating power spending most time awaiting user input. Is it in this sense that the DOS version took 100% of the CPU, or did it load the CPU with real calculations to its full capacity?

Quote:
Originally Posted by Mobhack View Post
As its a game, it assumes that you are playing it as the primary purpose of running the computer at that time if it is on the screen.
That I understand. I am a purist in this regard, for I will not have any distractions while playing. Switching away to check e-mail or social networks spoils one's experience and is actually an offense to the game's author. I enjoy winSPWW2 and will never do that.

Quote:
Originally Posted by Mobhack View Post
When its doing something, it grabs the CPU, and when its "idle" it will still grab it for screen updates several times a second.
WinSPWW2 does not strain the CPU much in this "idle" state.

Quote:
Originally Posted by Mobhack View Post
Games are designed differently from office apps. They hog the CPU, unlike word processors etc - But I designed this one to let the office apps get a look in by giving it an OnIdle event!
If a game is a first-person shooter with an unlimited FPS it will surely put the hardware to its limits, but I shouldn't expect it of winSPWW2 with its scanty low-FPS (and fixed-FPS) animation. I would know what calculations are taking nearly 100% of CPU time during the processing of so innocent an event as the rally command? Would it not be some dummy load arising from the lack of a delay in the main loop? I will always add a tiny delay to such loops lest they clog the CPU in the absence of actual work:

Code:
while true do begin
  ProcessEventsIfAny();
  Delay(timeUntilNextUpdate);
end;
and perhaps you might do the same in case nobody has subscribed to the OnIdle event...

Quote:
Originally Posted by Mobhack View Post
If you really need that CPU time to do something else than play the game - then either shut the game down or minimise it to the task bar.
I'm worried about the increased wearing of my computer under so high a load in a situation where this load is totally unnecessary and is only a side-effect of the game's architecture. It is not the bare digits in the Task Manager but the actual high power consumption manifested in the whining of the fan.
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 05:07 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2024, Shrapnel Games, Inc. - All Rights Reserved.