Skip to content

dsidirop/6 consolidate getplayerbuff into an api method#9

Merged
dsidirop merged 7 commits intomasterfrom
dsidirop/6-consolidate-getplayerbuff-into-an-api-method
Jun 2, 2024
Merged

dsidirop/6 consolidate getplayerbuff into an api method#9
dsidirop merged 7 commits intomasterfrom
dsidirop/6-consolidate-getplayerbuff-into-an-api-method

Conversation

@dsidirop
Copy link
Owner

@dsidirop dsidirop commented Jun 2, 2024

  • docs (api.lua): trivial doc-comment tweaks
  • perf (unitframes.lua): optimize BuffOnUpdate() a bit by avoiding to call GetTime() twice
  • perf (unitframes.lua): BuffOnUpdate now calls pfUI.api.GetPlayerBuffX(this.id,"HELPFUL")
  • perf (unitframes.lua): DebuffOnUpdate() now snapshots GetTime() once at the top of the call
  • perf (unitframes.lua): DebuffOnUpdate() now calls GetPlayerBuffX() just once
  • perf (unitframes.lua): call pfUI.api.GetPlayerBuffX(i,"HELPFUL") once in the 'buffs' section of :RefreshUnit()
  • perf (unitframes.lua): call pfUI.api.GetPlayerBuffX(i,"HELPFUL") once per iteration inside the 'debuff' section of :RefreshUnit()
  • perf (unitframes.lua): move the declaration of the 'row' variable outside the for-each-debuff loop of :RefreshUnit()

@dsidirop dsidirop merged commit 7cfd3bc into master Jun 2, 2024
@dsidirop dsidirop deleted the dsidirop/6-consolidate-getplayerbuff-into-an-api-method branch June 2, 2024 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant