-
Notifications
You must be signed in to change notification settings - Fork 37
TempEntity performance #223
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
Comments
Uhm, disregard this. I went to make the changes to |
And never mind again. I got confused between |
Yes, always a better idea to create TempEntity/UserMessage instances once (into global scope, when possible) and update values that were not known at load time (such as origins, etc.). I can indeed see how looping dozens of times into the effects helpers was costly. Thank you! I just checked your PR, seems like you forgot to remove line 269 and 278. |
Thank you, updated. |
Merged, thank you! To add more info; the reason why |
I am upgrading from a very old version of SP (> 1 year) and the new TempEntities class is slower than exposing ITempEntsSystem.
Loop took: 0.01820659637451172
I've had success with this workaround, maybe we can do this for the other wrapper functions in the
effects
package?0.004525899887084961
The text was updated successfully, but these errors were encountered: