SRL Archive - OSR Help

Faster positioning time than SPS?


Wardancer

2013-02-08 14:27:26

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.

Kevin

2013-02-08 14:49:15

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?

Wardancer

2013-02-08 14:58:36

From: nivek1989
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.