Im just confuse about memoryusage and textmemory
A.use many function in one sence
A.a
- local functions = {}
- function functions.running (event)
- end
- function functions.running_1 (event)
- end
- function functions.running_2 (event)
- end
- function functions.running_3 (event)
- end
A.b
- local function running (event)
- end
- local function running_1 (event)
- end
- local function .running_2 (event)
- end
- local function running_3 (event)
- end
_________________________________________________________________________________
B.declaring variables
B.a
- local value_1 = 0
- local value_2 = 1
- local value_3 = “text”
B.b
- local value ={
- value_1 = 0,
- value_2 = 1,
- value_3 = “text”,
- }
_____________________________________________________________________________
and Just want to ask what is the normal memoryuse and textmem?
here’s my code checking it
- local function checkmem()
- collectgarbage()
- print(“MemUsage: " … collectgarbage(“count”)/1000 … " MB”)
- local textMem = (system.getInfo( “textureMemoryUsed” ) / 1000000)
- print( "TexMem: " … textMem )
- end
- timer.performWithDelay(3000, checkmem, 0)
Im I doing well ??..then im getting 1.6++ MB for memUsage and i think 39.+++ for textmemoryUsed