| Blockland Forums > Modification Help |
| Global Tick Schedule for Zones? |
| (1/4) > >> |
| Melting Plastic:
In my ZoneEvents mod I have been simply using a combination of triggers and physical zones around bricks and accessing the onTickTrigger callback for all my OnInZone events. Of course Torque doesn't sense projectiles at all within a trigger so I tried doing a container ray cast for projectiles within the onTickTrigger callback for each trigger. - but onTickTrigger only gets called if a player of vehicle is already in the trigger.. my question is: is it worth it to have a global schedule that does container raycasts on each zone? Or would it be too laggy on the networking side of things? I want to keep Zones as fast and clean as possible. Any Thoughts? |
| Destiny/Zack0Wack0:
A global tick instead of a seperate tick for each trigger is the least laggiest method, yes. From the work I've done with TorqueScript schedules; they don't actually lag much. Short period schedules should not be in server-standard mods, no. Honestly I can't even think of any good reasons behind my answer right now. But I guess if one person starts doing it everyone starts doing it. Then we end up with multiple mods using short period schedules. There are a few cases of course, AI mods (Zombie mods.. bot events.. etc) and Space Guy's portal gun. I'm not sure where Badspot and Ephialtes even sit on this. Some mods using fast ticks have been failed while things like the portal gun which uses fast ticks remains allowed. |
| MegaScientifical:
You stole my idea, though... I made this, then Trader got it failed, then I tried it his way and gave up... I left BL for a while, came back and you had made this... ... Yes, global... do... it... :panda: |
| Iban:
I'm curious. What makes the global method better than the individual method? The code is more or less the same. The only difference is, in the global routine, you're having to shift through a simgroup and in the local routine you're making more schedule events. |
| Destiny/Zack0Wack0:
I'm not sure. Just from what I've done with schedules, the global tick lags less. I'm fairly sure there is a schedule limit, too. |
| Navigation |
| Message Index |
| Next page |