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

Script Optimizations #32

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Pop000100
Copy link

@Pop000100 Pop000100 commented Nov 29, 2023

  • Casting to float from int is about 10% slower then just using a float.(X -> X.0)
  • The VM doesn't seem to inline at all. So the function overhead for GetActorRef() is three times what GetReference() is. The overhead is most of the script delay. So I manually inlined them.

I emailed you(Ian) a long time ago about this. I just recently got to this since the new Skyrim version stuff is heating up. and that would mean a new SKSE version.

- Casting to float from int is about 10% slower then just using a float.(X -> X.0)
- The VM doesn't seem to inline at all. So the function overhead for  GetActorRef() is three times what  GetReference() is. The overhead is most of the script delay. So I manually inlined them.
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