23.07.2011, 11:24
(
Last edited by Babul; 23/07/2011 at 01:52 PM.
)
robanswe: in your compiler command line options, add the -S8192 or maybe -S65536
this is my command line parameter, using PawnStudio. debugmode 2, no optimizing, stack/heapsize set to 64kB, and some warnings to supress (warning 203 and 204, they are annoying for me lol).
pay attention to the -S65536, its setting the stack/heap size, as mentioned.
if you got long if{}else if{}... or switch(){case{}case{}... then a too-low set -S can cause yor problem aswell, and the -S setting to a higher size will solve it
@1516594552: thank you for sharing this, i always wanted to check out how efficient my method in getting closest players is. now i can test it. TY! rep+++
edit: lol @ this
i guess i got something to optimize... well, that was a profiling for 20 seconds gameplay only, but it points to the right direction where to optimize the unbelievable waste of CPU time in the textdraw routine.
it took me like 10 minutes to get the profiler.html output! thanks again :P
Code:
"%in%" -o"%out%" -d2 -O0 -S65536 -w203 -w204
pay attention to the -S65536, its setting the stack/heap size, as mentioned.
if you got long if{}else if{}... or switch(){case{}case{}... then a too-low set -S can cause yor problem aswell, and the -S setting to a higher size will solve it

@1516594552: thank you for sharing this, i always wanted to check out how efficient my method in getting closest players is. now i can test it. TY! rep+++
edit: lol @ this
Code:
Function Calls Time per call Overall time Overall time, % ShowTDStatus 7 13338 93364 82.22
it took me like 10 minutes to get the profiler.html output! thanks again :P

