• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

What is this classicAttackSpeed parameter at config.lua?

MutantAssassin

Active Member
Joined
Dec 13, 2009
Messages
43
Solutions
1
Reaction score
29
Well, the title says it all. I am trying to get used to TFS (currently it is quite different from otserv) and I saw this classicAttackSpeed parameter at config.lua, along with a warning about high CPU usage. The description in there is not very informative. Could someone please tell me what exactly it does and why it might heavily increase CPU usage?

Cheers,

Assassina Mutante.
 
Solution
E

you will increase the amount of scheduled events by setting classicAttackSpeed

Having classicAttackSpeed enabled will eventually overload the scheduler and thus cause lags. This of course is dependent on how many players are online and how fast they can attack.

With classicAttackSpeed disabled, the player will stop attacking for a brief moment whenever they do another action (i.e. using a rune, moving et cetera), while they will not once it’s enabled

you will increase the amount of scheduled events by setting classicAttackSpeed

Having classicAttackSpeed enabled will eventually overload the scheduler and thus cause lags. This of course is dependent on how many players are online and how fast they can attack.

With classicAttackSpeed disabled, the player will stop attacking for a brief moment whenever they do another action (i.e. using a rune, moving et cetera), while they will not once it’s enabled
 
Solution
I forgot that, most often, the best source to find out something about otserv is the c++ code lol. Thank you for replying, @Evil Puncker.

EDITED: Offtopic, why can't I edit my original message? I tried to add the "solved" tag in the title, but I couldn't.
 
Back
Top