My gut instinct tell sme llSensorRepeat is better speed and server load wise, but I also like some more input and not just rely on gut instincts.
Just a curiosity, nothing critical

These forums are CLOSED. Please visit the new forums HERE
llSensorRepeat vs llSetTimerEvent & llSensor |
|
|
Nexus Laguna
Registered User
Join date: 20 Dec 2006
Posts: 40
|
05-03-2007 02:49
I was just wondering if anyone would have some solid info on whether it would be more beneficial and therefore faster to use llSensorRepeat or instead a combo of llSetTimerEvent and llSensor to perform the same function.
My gut instinct tell sme llSensorRepeat is better speed and server load wise, but I also like some more input and not just rely on gut instincts. Just a curiosity, nothing critical ![]() |
|
Learjeff Innis
musician & coder
Join date: 27 Nov 2006
Posts: 817
|
05-03-2007 06:31
My theory is that anything that can be done in either LSL or using a builtin function, the builtin is faster because it's written in C++ which gets compiled directly into machine code, which is faster than executing interpreted LSL code.
|
|
Travis Lambert
White dog, red collar
Join date: 3 Jun 2004
Posts: 2,819
|
05-03-2007 11:08
I tend to agree with Jeff, above.
Additionally, using llSensorRepeat() frees up that timer event for other usage. No matter what you do, llSensor/llSensorRepeat is one of those calls that is rather sim-taxing. Its a good idea to be responsible about it if you can, and scan with a rate as infrequent as you can get away with. _____________________
------------------
The Shelter The Shelter is a non-profit recreation center for new residents, and supporters of new residents. Our goal is to provide a positive & supportive social environment for those looking for one in our overwhelming world. |
|
Nexus Laguna
Registered User
Join date: 20 Dec 2006
Posts: 40
|
05-04-2007 23:35
I tend to agree with Jeff, above. Additionally, using llSensorRepeat() frees up that timer event for other usage. No matter what you do, llSensor/llSensorRepeat is one of those calls that is rather sim-taxing. Its a good idea to be responsible about it if you can, and scan with a rate as infrequent as you can get away with. Thanx for the info, was kind of my thinking too. And I do understand the use of llSensor/llSensorRepeat being sim taxing if not used properly ... my questions was just a curiosity. And I think the best thing, as mentioned by Travis, about using llSensorRepeat is the timer event is free .. that on its own is a good reason lol. |