issues in games after installing on device

Hi friends

i have developed a game in corona, it works perfectly fine on simulator. But when i install on my device (IPhone and android) after 50 sec it is not working smoothly. its getting pause and after some time it is getting hang.

May i know what can be the issue with the game?

Hoping for the reply soon.

if anyone wish i can show you the coding as well.

Regards
Varun [import]uid: 130269 topic_id: 32563 reply_id: 332563[/import]

I think we’ll probably need to see the coding, otherwise it could be absolutely anything. [import]uid: 84115 topic_id: 32563 reply_id: 129457[/import]

It sounds like a memory leak. You’re computer where the simulator is running is likely to have like 4-8GB of memory where as your device is in the 0.25-1GB range of memory. It doesn’t take long for a leaky program to start chewing up memory. [import]uid: 19626 topic_id: 32563 reply_id: 129462[/import]

I think we’ll probably need to see the coding, otherwise it could be absolutely anything. [import]uid: 84115 topic_id: 32563 reply_id: 129457[/import]

It sounds like a memory leak. You’re computer where the simulator is running is likely to have like 4-8GB of memory where as your device is in the 0.25-1GB range of memory. It doesn’t take long for a leaky program to start chewing up memory. [import]uid: 19626 topic_id: 32563 reply_id: 129462[/import]

If need to test for leaks this code may be useful to you;

[lua]local function monitorMem(event)
collectgarbage(“collect”)

print( “\nMemUsage: " … (collectgarbage(“count”)/1000) … " MB”)
print("Texture Usage " … system.getInfo( “textureMemoryUsed” ) / 1000000)

return true
end

Runtime:addEventListener(“enterFrame”, monitorMem)[/lua]

Peach :slight_smile: [import]uid: 52491 topic_id: 32563 reply_id: 129587[/import]

If need to test for leaks this code may be useful to you;

[lua]local function monitorMem(event)
collectgarbage(“collect”)

print( “\nMemUsage: " … (collectgarbage(“count”)/1000) … " MB”)
print("Texture Usage " … system.getInfo( “textureMemoryUsed” ) / 1000000)

return true
end

Runtime:addEventListener(“enterFrame”, monitorMem)[/lua]

Peach :slight_smile: [import]uid: 52491 topic_id: 32563 reply_id: 129587[/import]

Hi Peach and others

Thanks for your response, i checked it with the code you send me. My texture memory is quite good but my memory usage goes on increasing even if i change my screen.

So can you help me out how shall i maintain that?

Regards
Varun [import]uid: 130269 topic_id: 32563 reply_id: 129626[/import]

Hi Peach and others

Thanks for your response, i checked it with the code you send me. My texture memory is quite good but my memory usage goes on increasing even if i change my screen.

So can you help me out how shall i maintain that?

Regards
Varun [import]uid: 130269 topic_id: 32563 reply_id: 129627[/import]

If your memory usage keeps on increasing then it definitely sounds like a memory leak.
Can you please provide us with your code so we can see where the cause may be? Without seeing what is happening it is difficult to provide you with the answer, it could be that you are repeatedly creating an object in a runtime listener, or that you have unwittingly created an infinite loop.
Until we see an example of your code we can only make educated guesses. [import]uid: 84115 topic_id: 32563 reply_id: 129639[/import]

Hi Peach and others

Thanks for your response, i checked it with the code you send me. My texture memory is quite good but my memory usage goes on increasing even if i change my screen.

So can you help me out how shall i maintain that?

Regards
Varun [import]uid: 130269 topic_id: 32563 reply_id: 129626[/import]

Hi Peach and others

Thanks for your response, i checked it with the code you send me. My texture memory is quite good but my memory usage goes on increasing even if i change my screen.

So can you help me out how shall i maintain that?

Regards
Varun [import]uid: 130269 topic_id: 32563 reply_id: 129627[/import]

If your memory usage keeps on increasing then it definitely sounds like a memory leak.
Can you please provide us with your code so we can see where the cause may be? Without seeing what is happening it is difficult to provide you with the answer, it could be that you are repeatedly creating an object in a runtime listener, or that you have unwittingly created an infinite loop.
Until we see an example of your code we can only make educated guesses. [import]uid: 84115 topic_id: 32563 reply_id: 129639[/import]

hi Friends

My memory problem has been resolved, Thanks to all for your help.

But now i am facing other issue will scroll view in text field. I came to know that we can use placeholder and can do the it but i am not able to do it, so can anyone share a code for this textfield with placeholder and scrollview?
Regards
Varun [import]uid: 130269 topic_id: 32563 reply_id: 130259[/import]

hi Friends

My memory problem has been resolved, Thanks to all for your help.

But now i am facing other issue will scroll view in text field. I came to know that we can use placeholder and can do the it but i am not able to do it, so can anyone share a code for this textfield with placeholder and scrollview?
Regards
Varun [import]uid: 130269 topic_id: 32563 reply_id: 130259[/import]