|
Marcel Flatley
Sampireun Design
Join date: 29 Jul 2007
Posts: 2,032
|
10-04-2007 11:58
As a newbie into LSL (though i programmed quite a few years in other languages) I dont know about the influences my scripts have to the lag on land. At the moment I have about 80 freebie boxes in a building, who all use the llSensorRepeat to see wether an avatar is in 6 meter range. Only then the floating text describing the content of the box shows. Repeat time if the sensor is 0.5 seconds. Would 80 of these scripts cause lag or not? If so, is there another way of having my floating text, without having it go through my pretty building  Greetings Marcel
|
|
RJ Source
Green Sky Labs
Join date: 10 Jan 2007
Posts: 272
|
10-04-2007 12:33
Instead of using SensorRepeat, try llVolumeDetect. It will only fire on a collision, rather than needing to loop and sense.
Or you might consider a different strategy altogether, like printing out the box contents if a person clicks on it.
|
|
DanielFox Abernathy
Registered User
Join date: 20 Oct 2006
Posts: 212
|
10-04-2007 12:46
Repeat time if the sensor is 0.5 seconds. Would 80 of these scripts cause lag or not?
OH DEAR GOD
... seriously though, please don't do that. Have the settext appear for 30 seconds after a touch event. If you're doing this because you think settext is ugly, consider printing the description of your box contents of all your boxes on a single texture and then applying it to signs above each box with the correct offsets so that people can read whats in each box on actual prims.
... another alternative. If you're dead set on a sensor / settext, at least break your boxes up in groups. Have each box in a group listening on a large, negative channel. Have a single sensor for each group, maybe in hidden prim somewhere. When that sensor detects an avatar, it can tell the boxes via chat on the same negative channel to display their settext. Then when the avatar is no longer detected, it can tell them to turn off. Listeners also cause lag, but less than sensors...
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
10-04-2007 13:00
and you can put all those freebies in a single box with a paged dialog (with "TAKE ALL !" and "MORE" buttons)... I just made this for someone else.. the only CAVEAT right now it that it doesn't list items with names longer than 24 characters... but I'll fix that soon as I get a moment....
IM me in world, and I'll drop it on you... I don't know what the max for item contents is, but the dialog set-up I use supports ~1,100 entries so... shouldn't be an issue =)
|
|
Marcel Flatley
Sampireun Design
Join date: 29 Jul 2007
Posts: 2,032
|
10-05-2007 08:08
Well you guys confirmed my fears, so I changed the script in all 80 freebies  That's the punishment for asking afterwards instead of before implementing... Still its a bummer the floating text gets outside the building, if ppl get close to the wall they are next to. Espacially since I want my parcel to look as good as possible  Of course I could have put all the freebies into 1 big box, but that is exaclty what i want to avoid. The way i set up my freebie hall is that every box contains one freebie, so that people know what they buy for their L$ 0. Only because i disliked the boxes filled with things i didnt need, just to get the freebie I wanted. Combined with the change of content once in a while, I hope to attract people who actually want to know what they get Void does the box you mention give people the chance to take items 1 by 1 or do they have to take the whole load? If it can be done one by one it could same me some prims and I would be very interested  Thanks for your answers, Marcel
|
|
Johan Laurasia
Fully Rezzed
Join date: 31 Oct 2006
Posts: 1,394
|
10-05-2007 10:13
Floating text is horrible, I only use it to display repetitive (or updated) output while debugging a script, other than that I generally dont use it at all. You're best bet is to put the text on a texture, then apply it to the vendor box. While you're at it, you can take a white prim, place it behind the object you're vending, snap a picture, save it to the hard drive, then load into photoshop, gimp, etc. Then you can apply various effects to dress up the image and add the text as well. This will result in a profesional look that will increase sales. In your case, they're freebies, so they'll 'sell themselves', but if you're vending for profit, it definately helps to have.
|