#Memory Leak Help

1 messages · Page 1 of 1 (latest)

robust skiff
#

So I've been stuck trying to figure out what's causing memory usage to skyrocket in my game for, a while now. It's something to do with internal/ScriptContext and I don't know how to go about diagnosing it. It just slowly goes up over time. I thought it might be to do with the game saving automatically every now and again but I changed it to only save at certain points and it didn't fix anything.

Basically, does anyone know how to figure out what's causing a memory leak like this?

sour patioBOT
#

studio** You are now Level 2! **studio

turbid shell
#

Check your scripts.

#

All of them.

#

Analyze what they do, debug and see if the issue is fixed for good.

robust skiff
#

Okay but, what exactly, in the scripts, might cause the memory usage to increase over time,

turbid shell
#

Absolutely anything

#

Excessive loops, wrong task.spawn practice, blah blah

#

Useless processes wasting memory

#

Using it even though it should be freed up

brave creek
#

never looked into it, but is there any thing that shows real time memory consumption per script or something ?

turbid shell
#

Should be in the view tab

brave creek
#

Ok thanks, that s good to know

robust skiff
#

per script?

brave creek
#

like which script uses the most amount of memory