Forums

What are these CPU spikes?

Sat, Sep 4 2010 12:57 PM by andyson. 39 replies.
  • andyson United States
    2,388 Posts
    Wed, Aug 25 2010 12:56 PM

    As I reported in this thread while setting process affinity for the WGT game to a single "CPU" I have not had a single stutter or lag in solo playing mode (now 16 out of 16 lag free solo rounds) but I did get a single bad lag in a multi-player round (now 3 out of 4 lag free multi-player rounds).

    I have a gut feeling multi-player rounds use more of my CPU power because of the shot clock and maybe other stuff going on behind the scenes. 

    And because I am limiting the Flash game to a single "CPU" of my 4 "CPUs" I might be more susceptible to lag in multi-player if lag is caused by maxing out my single "CPU" capacity.

    I'm trying to answer the question: "What's going on within the game during a swing?"

    The first thing I found going on in the game is a periodic CPU usage spike occurring every 60 seconds.

    Here's a snapshot of my CPU1 usage meter while I played solo, my ball sitting in the fairway, no mouse movements, no keyboard input, nada going on but Flash waiting for my input and the tiny animations built in to the game.  (waving the mini-map flag, jittering the wind direction, pulsing my ball position on the mini-map, and the little highlight that runs across our name in the corner)

    Each horizontal grid line is 6 seconds in real time, each vertical grid line is 10% CPU utilization.

    WGTSky, would you please run this by the devs and find out what periodic 60 second task is running?  And if I happen to swing during one of these spikes will it increase the probability of a stutter or lag occurring?

    In case someone is wondering, I've seen friend status update CPU spikes as they randomly happen.  A friend comes on-line, my game window updates the status, and I see a corresponding burp in CPU usage. I'm thinking the periodic 60 second task is not for friend status updates.

  • BolloxInBruges United States
    1,002 Posts
    Wed, Aug 25 2010 1:08 PM

    Friend list makes my meter significantly worse.  When I wiped my list to 0 my meter problems were cut in half or maybe even less. (so no offense if I've deleted you at some point!)

     

    It could also be that line that flashes up in the top left by your screenname periodically, i recall avlee and marioh talking about it a few months ago on the forums.

    edit-nevermind, see you already mentioned that  ^

  • YankeeJim United States
    7,782 Posts
    Wed, Aug 25 2010 1:12 PM

    Andy-How about trying that with your ISP disconnected?

    BolloxInBruges:
    It could also be that line that flashes up in the top left by your screenname periodically

    He took that into account before the graphic.

    edit-LOL-I see you saw that.

  • WGTSky United States
    223 Posts
    Wed, Aug 25 2010 2:02 PM

    I'll do that Andyson, thanks very much for the highly detailed report!

  • Richard4168 United States
    2,690 Posts
    Wed, Aug 25 2010 2:12 PM

    Is it possible to pin point a CPU spike to one particular cause? The variables are enormous. I Googled it, and the reasons for CPU spikes could be just about anything. But it does look like you may have found a way to find what causes spikes within the game though.

  • OFCOURSEITSTIGHT United States
    27 Posts
    Wed, Aug 25 2010 10:01 PM

    Friend list activity causes occasional meter spikes.100 percent correct,I have been saying that for ages.I will see a spike then a split second later a friend will appear in my list from off-line to on-line,

  • andyson United States
    2,388 Posts
    Thu, Aug 26 2010 6:46 AM

    Richard4168:
    Is it possible to pin point a CPU spike to one particular cause?

    Yes, in this case I believe we can because:

    • My FireFox and Flash Plugin processes are running in one "CPU".
    • There is a bare minimum of background 'CPU' usage in the entire computer, even less on the 'CPU' running FF and FLASH.
    • Other applications (Excel, Paint, Skype) have their process affinity's set to 'CPUs' other than the FF/Flash 'CPU'
    • There is no user input to FF or Flash
    • The spike has a "signature" in that it appears every 60 seconds.
    • The spikes appear when I open the WGT Game Client window and disappear when I close it.

    The golf game doesn't even need to be running to see the spikes.  Here a trace of the FF/Flash 'CPU' usage with the Game Client open to the Main Menu.

     

     

  • ibprime United States
    60 Posts
    Thu, Aug 26 2010 2:23 PM

    I found this thread yesterday and found it very interesting. I have been getting these spikes more and more lately and was frustrated. I took the advice I found here and deleted all the contacts in my friends list  (was about 80 friends) and every since deleting them I have not had a noticeable  spike.  

  • PugsAce United States
    714 Posts
    Thu, Aug 26 2010 4:11 PM

    andyson:

     

    I'm trying to answer the question: "What's going on within the game during a swing?"

    The first thing I found going on in the game is a periodic CPU usage spike occurring every 60 seconds.

    Each horizontal grid line is 6 seconds in real time, each vertical grid line is 10% CPU utilization.

    Guesses:

    Tracking cookies?

    More likely... a virusscan utility monitoring activity (online or offline) at its internally set intervals?

    - just my .02

  • mefitz United States
    328 Posts
    Thu, Aug 26 2010 5:00 PM

        andyson, first off, I`m clueless about computers but....

      Last year I downloaded net statistics per a forum discussion about the internet traffic/usage on WGT. It also shows periodic spikes, but these are not exclusive to the "game client" page. I get a series of 5 spikes and then a "double" strength spike while on the forums ( or my profile, etc.) or the game page.

      If I go to a different site, these spikes disappear. This seems to be all WGT, possibly cookies as PugsAce suggests.

      just my 2, :) 

RSS