[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  Dawn of Time
. -> [Folder]  Administration
. . -> [Subject]  Where in the ROM Diku/DOT codebase is the code that governs spell/skill lag?

Where in the ROM Diku/DOT codebase is the code that governs spell/skill lag?

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by BishopOsiris   USA  (55 posts)  [Biography] bio
Date Mon 18 Oct 2021 10:37 PM (UTC)
Message
I've found a few keywords (wait_state, wait, pulse) that I thought would lead me to lag-code but so far I can't quite pin it down. I want to reduce all lag from imm chars. No spell lag. No skill lag.

Any ideas?
[Go to top] top

Posted by Nick Gammon   Australia  (23,003 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Sat 23 Oct 2021 07:49 PM (UTC)
Message
What do you mean by spell lag? The time from when you cast the spell to when it takes effect?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by BishopOsiris   USA  (55 posts)  [Biography] bio
Date Reply #2 on Sat 23 Oct 2021 07:51 PM (UTC)
Message
I mean the time between when you cast one spell till the time you can cast another spell. Offensive spells generally have 2 rounds of lag. I want to reduce that to no lag for immortals.
[Go to top] top

Posted by Nick Gammon   Australia  (23,003 posts)  [Biography] bio   Forum Administrator
Date Reply #3 on Tue 26 Oct 2021 10:27 PM (UTC)
Message
What message do you get if you try to cast a spell before the rounds are up?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by BishopOsiris   USA  (55 posts)  [Biography] bio
Date Reply #4 on Tue 26 Oct 2021 11:28 PM (UTC)
Message
No message. You are just lagged 2 rounds before the next command goes through.
[Go to top] top

Posted by Nick Gammon   Australia  (23,003 posts)  [Biography] bio   Forum Administrator
Date Reply #5 on Wed 27 Oct 2021 05:44 AM (UTC)
Message
You are posting in the DoT part of the forum, but also asking about ROM Diku/DOT code bases. They may well not all do it the same way.

Does *every* command lag, or just the skills? If only the skills I would look at what happens when you type one and see where the code decides to do it later. It may put it into a queue of things to do, rather than do it immediately.

Using the debugger to follow the flow of code may be quicker than trying to work out by just looking at it.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by BishopOsiris   USA  (55 posts)  [Biography] bio
Date Reply #6 on Wed 27 Oct 2021 12:25 PM (UTC)
Message
DOT is based on the Diku base code that's why I mentioned it. I have traced it via debugger a few times but never saw the pulse time for the skill/spell. I even set all the pulse macros to 0 but it had no affect.

DOT works just like all other Diku muds. There's lag time on any action that affects another player; offensive and defensive skills/spells used in either combat or to help a guild mate, etc. But other regular commands like says, emotes, eating, drinking, etc. have no lag.

I'll keep looking until I find it but thanks for looking anyway. I appreciate it.
[Go to top] top

Posted by Nick Gammon   Australia  (23,003 posts)  [Biography] bio   Forum Administrator
Date Reply #7 on Thu 28 Oct 2021 12:18 AM (UTC)

Amended on Thu 28 Oct 2021 12:19 AM (UTC) by Nick Gammon

Message

My guess is that it is related to this in update.c:

The violence_update function is called only every PULSE_VIOLENCE ticks (for every player) so perhaps this is why it isn’t easy to change it so that things happen faster for some players rather than others.

However I could be wrong.


- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


11,520 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]