Memory question

1st: Which unit this function returns?

collectgarbage() print( "MemUsage: " .. collectgarbage("count") )

2nd: Is it okay if my project spends about 480 [units]? Isn’t it too much? As I don’t know in which unit it is measured, I don’t know if this number is okay.

Thanks.

It returns data in KBytes (1024 bytes per KByte).   480K isn’t much at all.  This does not include memory used by graphics and sounds.   So I would say its around average.

It returns data in KBytes (1024 bytes per KByte).   480K isn’t much at all.  This does not include memory used by graphics and sounds.   So I would say its around average.