Skip to content

Script Optimizations#32

Open
Pop000100 wants to merge 1 commit intoianpatt:masterfrom
Pop000100:scriptOptimizations
Open

Script Optimizations#32
Pop000100 wants to merge 1 commit intoianpatt:masterfrom
Pop000100:scriptOptimizations

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