Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More optimization work. #3

Merged
merged 3 commits into from Nov 29, 2021
Merged

Conversation

Gaz-tec
Copy link
Collaborator

@Gaz-tec Gaz-tec commented Nov 29, 2021

Quick function replacement and PlayerRef property added.

Added PlayerRef property to all instances of FV_SwallowScript. Explanation for PlayerRef over Game.GetPlayer() http://gamesas.com/best-practices-papyrus-t291375.html

Also scrapped old percentage calculation functionality, this is slow. Used GetValuePercentage() in its' place.
@@ -64,25 +64,17 @@ Group Scripts
EndGroup

Group Actors
Actor Property PlayerRef Auto Const Mandatory ;GAZ: This script previously called Game.GetPlayer() so many times that it was worth sacrificing this small amount of script memory for a property, to scrap those calls. Documentation: http://gamesas.com/best-practices-papyrus-t291375.html
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love the documentary comment

@keilladraconis keilladraconis merged commit 6d28323 into keilladraconis:master Nov 29, 2021
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.

None yet

2 participants