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

This Month's Specials

Air Command 3.0- Save $12.00
War Plan Pacific- Save $7.00

   







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


 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old September 10th, 2010, 08:53 AM

dmnt dmnt is offline
Sergeant
 
Join Date: Jan 2010
Location: Espoo, Finland
Posts: 359
Thanks: 56
Thanked 136 Times in 104 Posts
dmnt is on a distinguished road
Lightbulb Re: cpu consumption

I work as a programmer in the software industry and often write multi-threaded applications and I have noticed the same that the other gamers above.

I wonder if there is no "sleep" or "wait" periods within the game? I'm running winspmbt on a single core machine and it then naturally takes 100% of the computing time available for it. Not that it's a big problem, but while drawing maps for the game the responsiveness of other windows could be better if it didn't.

Is there any wait loop where the software could sleep() for couple of milliseconds or possibility of yielding by sleeping 0 milliseconds whenever there's "nothing to do". Of course I understand that the base program was written at the ages when CPUs were never idling but working in a busy loop and there was no multitasking. All computers wait at the same speed - maybe there's a place somewhere for this little sleep routine?
Reply With Quote
 

Bookmarks

Thread Tools
Display Modes

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 09:32 AM.


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