Difference between revisions of "Performance (Papyrus)"

168 bytes removed ,  14:50, 1 April 2016
imported>Plplecuyer
 
imported>Hannibalektr
 
Line 373: Line 373:
After profiling, you will end up with logs in your Script folder in the Profiling sub-folder. This will generally be "<User Documents Folder>\My Games\Fallout4\Logs\Script\Profiling".
After profiling, you will end up with logs in your Script folder in the Profiling sub-folder. This will generally be "<User Documents Folder>\My Games\Fallout4\Logs\Script\Profiling".


You can then open these logs using the profile log tool in the devtools folder on vault. ''(NOTE: Update this if we release the tool or not, hopefully we can)''
You can then open these logs using the profile log tool in the Tools folder where your CK was installed.


The tool will then give you a screen listing every function that was recorded, and various statistics for that particular function. If you select one of the functions then the right panel will show you the complete call tree of a particular thread that executed that function (you can change which call you view with the dropdown). Using that timing information, you should be able to figure out what is making your script slow, and hopefully figure out how to resolve it.
The tool will then give you a screen listing every function that was recorded, and various statistics for that particular function. If you select one of the functions then the right panel will show you the complete call tree of a particular thread that executed that function (you can change which call you view with the dropdown). Using that timing information, you should be able to figure out what is making your script slow, and hopefully figure out how to resolve it.
{{RequiresPublicUpdate|Update this with information on the profiling tools once we figure out where they are}}


=I can't remember all this!=
=I can't remember all this!=
Well, you can always come back here for a review, but also try to get coworkers or friends to look at your scripts. They may be able to spot things you miss, or give you alternate solutions to your issues. They may even give you an idea for a new feature, or how to make your script more reusable.
Well, you can always come back here for a review, but also try to get coworkers or friends to look at your scripts. They may be able to spot things you miss, or give you alternate solutions to your issues. They may even give you an idea for a new feature, or how to make your script more reusable.
[[Category:Papyrus]]
[[Category:Papyrus]]
Anonymous user