Difference between revisions of "INI Settings (Papyrus)"
Jump to navigation
Jump to search
→iMaxAllocatedMemoryBytes: added a warning about stack thrashing caused by setting "iMaxAllocatedMemoryBytes" too large.
imported>Mardoxx m (These are signed integers.) |
imported>Threedee (→iMaxAllocatedMemoryBytes: added a warning about stack thrashing caused by setting "iMaxAllocatedMemoryBytes" too large.) |
||
Line 54: | Line 54: | ||
'''Default''': 76800 (75kB) | '''Default''': 76800 (75kB) | ||
WARNING: increasing iMaxAllocatedMemoryBytes to values much larger than default can cause [//en.wikipedia.org/wiki/Stack_buffer_overflow stack thrashing] (stack buffer overflows), intermittent game stuttering, erratic game behavior and CTDs. | |||
Stack thrashing will produce stack dumps in the Papyrus log, similar to the example below. The dumps can be very large if many scripts are running, producing a very large log file. | |||
<pre> | |||
[03/30/2013 - 12:21:08PM] Suspended stack count is over our warning threshold, dumping stacks: | |||
[03/30/2013 - 12:21:08PM] VM is freezing... | |||
[03/30/2013 - 12:21:08PM] VM is frozen | |||
[03/30/2013 - 12:21:08PM] Dumping stack 137790: | |||
[03/30/2013 - 12:21:08PM] Frame count: 0 (Page count: 0) | |||
[03/30/2013 - 12:21:08PM] State: Running (Freeze state: Freezing) | |||
[03/30/2013 - 12:21:08PM] Type: Normal | |||
[03/30/2013 - 12:21:08PM] Return register: None | |||
[03/30/2013 - 12:21:08PM] Has stack callback: No | |||
[03/30/2013 - 12:21:08PM] Stack trace: | |||
[03/30/2013 - 12:21:08PM] [ (0010DCE8)].mineorefurniturescript.OnLoad() - (requested call) | |||
</pre> | |||
===bEnableLogging=== | ===bEnableLogging=== |