timerd problem. (56d-Nightly) - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: General Help (/Forum-General-Help) +--- Thread: timerd problem. (56d-Nightly) (/Thread-timerd-problem-56d-Nightly) |
timerd problem. (56d-Nightly) - Satvet - 02-04-2020 11:04 AM "timerd" does not work on the item on the character. (56d-Nightly) but there is no such problem in "56d-X", it works properly. How "timerd" works like "56d-X"? RE: timerd problem. (56d-Nightly) - Coruja - 02-06-2020 07:14 AM I'm testing here using this code, and its working fine Code: [TYPEDEF t_test_timer] // usage: just type ".xevents +t_test_timer" or ".xtype t_test_item" and then ".xtimerd 10" But note that sphere internal engine must loop through all objects on world to keep updating the timer of each one, and its not a good idea loop through many hundreds/millions of items 10x per second (TIMERD), so sphere only uses TIMERD on chars, and TIMER on items. You can set TIMERD on items but it will automatically drop the precision (eg: TIMERD=22 will turn into TIMER=2) RE: timerd problem. (56d-Nightly) - Satvet - 02-18-2020 01:29 PM @Coruja, this is what i want to tell. watch this RE: timerd problem. (56d-Nightly) - Coruja - 02-21-2020 03:33 PM Yes as you can see, one screen is updating 10x per sec (TIMERD) and the other is updating 1x per sec (TIMER) Although one build seems to be "visually" faster than other, both have the same speed and they just update the TIMER value on items at different moment By default, sphere use TIMERD on chars because this is really required by char actions (use skills, cast spells, etc) but items doesn't need such precision so they use TIMER instead TIMERD to save some CPU performance. Honestly I don't know if it worths change this, but since sphere X is using TIMERD, I updated 56d to also use TIMERD to improve script compatibility between both builds, so try using the latest build to check if it's working fine RE: timerd problem. (56d-Nightly) - Satvet - 02-21-2020 09:01 PM I tried the latest version it working fine. thx. |