Rewrote get/set_proto_data functions in C++ and added an auto-extend mechanism for proto loading limit (from Mr.Stalin)

Replaced ProtoProcessingLimit with LoadProtoMaxLimit option.
Added more definitions to define_extra.h and reformatted sfall.h a bit.
This commit is contained in:
NovaRain
2018-10-07 10:30:59 +08:00
parent 6796dc1012
commit e6d958a83b
9 changed files with 139 additions and 143 deletions
+4 -4
View File
@@ -347,6 +347,10 @@ CorpseLineOfFireFix=0
;Set to 1 (or some higher number if needed, the maximum is 127) to prevent 100% CPU use
ProcessorIdle=-1
;Set a number of how many protos of a type can be loaded into memory at once (valid range: 512..4096)
;Set to -1 to let set_proto_data script function automatically increase the limit when needed
LoadProtoMaxLimit=-1
;Set to 1 if using the hero appearance mod
EnableHeroAppearanceMod=0
@@ -549,10 +553,6 @@ ExplosionsEmitLight=0
;MovieTimer_artimer3=270
;MovieTimer_artimer4=360
;Uncomment the next line to change how many protos the engine can process at once (valid range: 512..16384)
;Set to 1024 or some higher number to avoid some glitches with scripts that will process a large number of protos
;ProtoProcessingLimit=512
;Set to 1 to enable the new arrays behavior
;Set to 0 for backward compatibility with pre-3.4 scripts
arraysBehavior=1