Results 1 to 3 of 3

Thread: Faster positioning time than SPS?

  1. #1
    Join Date
    Jul 2012
    Posts
    279
    Mentioned
    5 Post(s)
    Quoted
    46 Post(s)

    Default Faster positioning time than SPS?

    On the script I'm working on, I'm pretty much hitting a wall in terms of speed with SPS. Even after cutting down the custom map to the smaller it can be, the processing time is still hovering around 400ms which, for the script I'm using, is problematic. It's a fairly small area and it's absolutely impossible to use Obj_DTMs or TPAs as there are no objects and only two colours (grey and black). Is there any kind of anchoring system similar to SPS that could be used to limit the processing time? I also wonder if I could gain any time by trimming down unneeded processes of SPS_GetMyPos for this particular small area or I better just not start wasting time with this.

    Thank you for your time.

  2. #2
    Join Date
    Sep 2012
    Location
    Here.
    Posts
    2,007
    Mentioned
    88 Post(s)
    Quoted
    1014 Post(s)

    Default

    Is it possible to use a DDTM anchor at all, akin to what is seen here by @Fakawi?

    Also, wow. Fakawi has ID 2. That's awesome.

    Edit: Also, has changing the SPS_Tolerance value worked for you in any manner of affecting runtime speed?

  3. #3
    Join Date
    Jul 2012
    Posts
    279
    Mentioned
    5 Post(s)
    Quoted
    46 Post(s)

    Default

    Quote Originally Posted by nivek1989 View Post
    Is it possible to use a DDTM anchor at all, akin to what is seen here by @Fakawi?

    Also, wow. Fakawi has ID 2. That's awesome.

    Edit: Also, has changing the SPS_Tolerance value worked for you in any manner of affecting runtime speed?
    Thank you for the quick reply.

    The DDTM anchor was exactly what I was looking for. I recall seeing it in a script in the past but I was fairly clueless about how it worked. I'll give it a try in a few hours, but it'd be great if someone could let me know the processing time of this method for them.

    I didn't want to touch SPS_GetMyPos before someone would let me know how it worked out for them, but now that you mention this, I'm unable to resist. I'll post again later and see how it works out.

    EDIT: As an update for others that might be tempted to try the same, playing around with SPS_GetMyPos gave very little result other than push my script to its 2180th line. Time to see if DDTM anchor would be faster.

    EDIT2: Looked a bit into Fakawi's DDTM anchor. I believe it's only a normal DTM though. This is really opening an interesting realm of possibility.

    Random rant: Why does PrintDTM only writes down the DTM in the console? Gah.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •