View Single Post
04/26/18, 03:51 PM   #1
Solinur
AddOn Author - Click to view addons
Join Date: Aug 2014
Posts: 78
[fixed] GetPlayerStat runs for >25ms at certain conditions.

Due ot a bug report on Combat Metrics I noticed the following issue (on PTS only)

When 7 modifiers to the Weapon Critical Strike Rating are active the function
Lua Code:
  1. GetPlayerStat(STAT_CRITICAL_STRIKE, STAT_BONUS_OPTION_APPLY_BONUS)
needs more than 25 ms to execute, which already causes a slight stutter. I tested this a bit and found an exponential dependancy on the amount of modifiers active.

# | ~ time in ms
----------------
0 | 0.00024
1 | 0.0019
2 | 0.0072
3 | 0.027
4 | 0.12
5 | 0.50
6 | 3.7
7 | 25

Just for reference the modifiers I used are:
  • Minor Savagery
  • Major Savagery
  • Perfect Strike (CP)
  • Twin Blade and Blunt (Dual Wield)
  • Dexterity (Medium Armor)
  • Pressure Points (NB Assassination)
  • Carnage (Khajit)

Last edited by Solinur : 05/09/18 at 02:49 PM.