Jump to content

Eve Neutron

Resident
  • Posts

    20
  • Joined

  • Last visited

Posts posted by Eve Neutron

  1. Well, it turns out that all the big and great are doing the same. Maintaining an index is not hard. But when there's a need to run around between the inventory index and notecard lines, it becomes a bit complicated. And script grows alot. My lite v6 HUDs holds index. But the full ones with notecards don't, it's alot more complicated. But I'll do it and test to see how it goes.

  2. i understand, but, i dont think people like too much setup.

    and setting up a notecard can be a bit of work.

    i started doing changes to save only index of inventory, but when i reached notecards i saw the script will be too big.

    currently with a list, i checked with 300 animations and it worked fine and fast. 

    i know it will reflect on sim memory, but 

    calling dataserver events can cause lag too, 64K  is not really so bad. and amount of dancers doesnt affect my memory consumption.

    the only affect is the core script that hold the list of animations.

    there can be 100 people on a sim, and lets say they all have my hud. so the animation list script will take 6400K which it 6.4M of memory.

     

    thats not alot :)

     

    of course the hud is not 64K there is much more than one script. but the only breathing script, in terms of memory will be the core.

  3. My thought exactly and I started out with this implementation until I reached notecards. And than I thought no problem, in notecard I can go to specific line. And than I started reading, and noticed that each llgetnotecardline causes a sleep of 0.1 and calls dataserver. So it may cause more lag and lack of performance when trying to display a page of animations. Especially if someone decides to play with it. Also, my question was about the dataserver, is calling a data server event better than holding a list. An I still don't have an answer for that. My lite HUDs V6 have that mechanism exactly. It consumes very low memory. But when notecards are involved it seems more complicated and problematic. Especially that sleep issue. If you are in a laggy place and I will try to retrieve 10 animations there will be at least 1 sec of delay. At least.

  4. dirst of all, thank you so much for answering so quickly :D

    but i already know the trade off between memory and performance when speaking of notecards.

     

    i would like to add more info, maybe it will help :)

    its a dance hud ive been selling for years.

    i want to make it better.

     

    currently its using a list of all dances.

    i tested with 300 dances, it worked fine.  but im worried that someday somone will be eager to test my hud and put more dances, and i dont know how much it will hold.

     

    a list of 300 strings is alot. so i compile it on mono, but still.

    i thought it will be better if, for every request for "NEXT" or "PREVIOUS" i will read straight from notecard line with dataserver event.

     

    and than i will not have the use for a list. the script will be lighter, 

    the question is: will calling multiple dataserver events cause more load on the server than a big list of strings?

    and will i have glitches? for this i know now, that the answer is maybe, first because of bugs, second, because of dataserver is asynchronous.

     

    thank you :)

  5. 1. you mentioned "listens" that means many, in terms of lag, i suggest to try and stick to one, and different messages.

    2. use a negative channel of course.

    3. on listen event, check :  if(llGetOwnerKey(id) == llGetOwner())

    only than you are sure that its your HUD posting the message.

    4. dont forget to use llRegionSay on the hud, because you want to be able to control it from far.

     

     

  6. my question is basically simple, whats worse in means of lag and performance.

    1. big list.

    2. applying to dataserver to read from notecard

     

    thats basically my problem.

    i need to move on inventory items, that are on a notecard.

    so, i can run on notecard once, and save all to list.

    or, i can call llGetNotecardLine everytime i want to move to next object on the inventory.

     

    somone has an idea?!


  7. of course its not a complete solution, but i thats a direction, i leave you to learn the rest yourself.

    ive done several followers, from all kinds, with complicated scripts, 

    and ill point you to another problem,

     

    you must be using, llMoveToTarget, or something like that.

    this function call have a 65m limit.

    what happens if you fly really fast?!     the pet will just halt and stay, and you will loose it.

     

    so take it into account as well.   :)

  8. i dont know what you know or what you dont know.

    so ill just write everything.

     

    you must tell the cones to face a direction, so

    either you do it with a timer, or llSetLinkPrimitiveParams, or llMessageLinked to send all prims a message to turn.

    how you turn?

    you need to get your avatar's rotation

     

    you can do it with a sensor. and use        llDetectedRot(0);

     

    and the cones should use llLookAt

     

     

     

    thats the easy way anyway :)

×
×
  • Create New...