Announcement

Collapse
No announcement yet.

Bad performance with retrieving Monkeytalk info

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Bad performance with retrieving Monkeytalk info

    Hey Ninja, when using MonkeyTalk and trying to retrieve information I am getting mildly bad performance. These 4 lines use 2% of my CPU each:
    double latitudeM = myMonkeyTalk.Latitude;
    double longitudeM = myMonkeyTalk.Longitude;
    int speedM = myMonkeyTalk.Speed;
    int directionM = myMonkeyTalk.Heading;

    This isn't much CPU usage on my computer because it is pretty fast but on slower computers it uses a lot. Any ideas of why it would be doing this?
    Thanks
    Brady
    AMD XP 2600+/512MB RAM/120GB hard drive
    Opus 150W/DVD/GPS/7" Lilliput TS/802.11g/Bluetooth
    Installed.


    -GPSSecure- - GPS Tracking
    -AltTabber2.2.2- - Handy touchscreen utility.

  • #2
    Hey ninja, can you help us out? I'm having a similar problem.

    For me it isnt CPU usage, it is RR that takes about 20 seconds to update any labels (even RR internal labels) and takes 20 seconds to register any clicks on buttons, it seems that for some reason it is crapping out due to 2 connections on monkey talk? can that be so?
    The RR information that is supposed to be pulled from MM isnt coming up when my program is running....
    Roy

    2005 Range Rover 4.4
    Any ideas for putting a PC in this? :)

    Comment


    • #3
      @RoyN

      If you want to pull MM's info while RR is running, you can do so by requesting the info RR already collected from RR's SDK.. that saves you the trouble of referencing/using MonkeyTalk.dll (since RR already uses it). By doing so, you'll also have access to any of RR's info ... I have never tried to use Monkeytalk from 2 apps at the same time, but from a single app seems to work fairly well.
      Ride Runner RR's Myspace

      "Being happy is not about having what you want, it's about wanting what you have."
      "The best things in life are always free - but that doesn't mean money can't buy you good things."

      Comment


      • #4
        Yeah, I wanted to leave RR out of the equation, merely to make the thing less "dependent" (depends on MM + RR), but I think I'll have to start looking at the RR sdk now... no biggie... I can get lat/lon right?
        Roy

        2005 Range Rover 4.4
        Any ideas for putting a PC in this? :)

        Comment


        • #5
          Are you using the MonkeyTalk DLL or a winsock connection?

          I believe RR uses winsock to talk to Map Monkey, which only supports one connection. The DLL is much faster and can handle multiple connections with no noticable delay in response
          Destinator 3 For PC! - http://www.map-monkey.co.uk/

          Comment


          • #6
            I used your monkeytalk sdk example and modified that...

            My application doesnt seem to have problems, but RR is crapping out royally!

            Is it possible that the monkeytalk is screwing up the winsock connection and RR cant handle the winsock problems well?

            I notice that my RR Skin buttons that call MM functions (HotkeyCMDs and others) dont work when there is this problem... it appears RR looses communication with MM and also becomes slow to respond... it is weird because my down/on skin highlights work as soon as I click, but the button function is delayed about 25 seconds. So if I try to go to main menu I click the menu in RR, the button highlights but screen doesnt change....25 seconds later.... menu pops up...

            Very weird if ya ask me! perhaps I could send you or guino or both my application to be tested with RR by someone else as it mgiht help out... if you guys have time/will for that let me know
            Roy

            2005 Range Rover 4.4
            Any ideas for putting a PC in this? :)

            Comment


            • #8
              I'm talking directly with the DLL.
              AMD XP 2600+/512MB RAM/120GB hard drive
              Opus 150W/DVD/GPS/7" Lilliput TS/802.11g/Bluetooth
              Installed.


              -GPSSecure- - GPS Tracking
              -AltTabber2.2.2- - Handy touchscreen utility.

              Comment


              • #9
                check ur e-mail!
                Roy

                2005 Range Rover 4.4
                Any ideas for putting a PC in this? :)

                Comment


                • #10
                  Originally posted by RoyN
                  check ur e-mail!
                  I never get emails when they are sent through mp3car from members, only the ones that are sent telling me I have a private message or with the threads I am subscribed to. Dunno why.
                  AMD XP 2600+/512MB RAM/120GB hard drive
                  Opus 150W/DVD/GPS/7" Lilliput TS/802.11g/Bluetooth
                  Installed.


                  -GPSSecure- - GPS Tracking
                  -AltTabber2.2.2- - Handy touchscreen utility.

                  Comment


                  • #12
                    Originally posted by RoyN
                    Brady,

                    it was to NM to check out the bad performance...
                    wow, I'm tired.
                    AMD XP 2600+/512MB RAM/120GB hard drive
                    Opus 150W/DVD/GPS/7" Lilliput TS/802.11g/Bluetooth
                    Installed.


                    -GPSSecure- - GPS Tracking
                    -AltTabber2.2.2- - Handy touchscreen utility.

                    Comment


                    • #13
                      Originally posted by xBrady
                      Hey Ninja, when using MonkeyTalk and trying to retrieve information I am getting mildly bad performance. These 4 lines use 2% of my CPU each:
                      double latitudeM = myMonkeyTalk.Latitude;
                      double longitudeM = myMonkeyTalk.Longitude;
                      int speedM = myMonkeyTalk.Speed;
                      int directionM = myMonkeyTalk.Heading;

                      This isn't much CPU usage on my computer because it is pretty fast but on slower computers it uses a lot. Any ideas of why it would be doing this?
                      Thanks
                      Brady
                      Ninja, I've been working with xBrady on GPSSecure and he asked me to resurrect this thread. The following link describes my problem, much like what xBrady described above but worse. My 400MHz machine pegs the CPU at 100% with RR, MM, and GPSSecure.

                      http://www.mp3car.com/vbulletin/show...&postcount=304

                      Can you help us out?
                      HARDWARE: Fujitsu Stylistic ST5111w/WiFi and dock, internal Hitachi 500G HD, external 1TB HD, Sierra Wireless Aircard 550, DVD-RW, BoomzBox HD radio, XM Commander, Delorme GPS, Saitek X-52 Pro joystick, BluSoleil Bluetooth, TPMS, FB, Elm327

                      Comment

                      Working...
                      X