performance issues in real device

my problem is performance (fps rate) decreased from the first time i start my game up before creating huge amount of visual objects so how can i detect from where the memory leaking does modules causes problem like this ?
thanks in advance
with respect [import]uid: 74537 topic_id: 16810 reply_id: 316810[/import]

Kind of hard to know what’s causing the problem since you don’t give any code, which is understandable.

But if all those objects got physics applied to them then that requires a lot of performance. (That’s how I’ve understood it) [import]uid: 24111 topic_id: 16810 reply_id: 62956[/import]

If its memory leak your concerned about have a look at this blog post http://blog.anscamobile.com/2011/08/corona-sdk-memory-leak-prevention-101/

Remember mobile devices can’t handle as many objects as the simulator can. That’s why you should test it on your device as well as the simulator. Expect device fps to start dropping after so many objects.

Of course too many dynamic physics objects will slow your fps on a device. I know on my android phone if I make over a hundred dynamic physics objects the fps will drop dramatically.

Without any code or more information it’s very difficult to see what is really causing the problem. [import]uid: 38820 topic_id: 16810 reply_id: 62960[/import]

Thank you @glennbjr and @oskwish

this is description for my problem with details (animation stuttering using transition.to() ) …
i am using transition.to (increasing y and x by number value to make my objects moved in path) also my objects numbers in screen does not exceeds 14 objects i am using movieclip to move the animated frames (each object have 4 frames that played by obj:play method )

then objects moved using transition function and on complete also i am calling the same function i am feeling when run the game in real android device that object stuck in screen for less than 20ms not all the time and then completing its transition …

also i tried to measure the fps on my game on the start up of game its between 23-27 and its seems to be constant in these range the minimum fps in last frames when (active objects on the screen reach 12 ) fps will be 17

BTW, using spritesheet instead of movieclip also suffer from the same problem i tried it) no difference

so please help me i have to know where is the actual problem is it from transition function or what ???

i have modularize my code into modules does this make problem
but i don’t think that also moving one object on the screen have not smoothly movement as it should be
with respect

thanks in advance …

[import]uid: 74537 topic_id: 16810 reply_id: 62964[/import]

It’s still REALLY hard to tell without code. [import]uid: 24111 topic_id: 16810 reply_id: 62965[/import]

It says I’m not authorized. [import]uid: 24111 topic_id: 16810 reply_id: 62967[/import]

ok this code simulates what i mean

download sample

dl.dropbox.com/u/24686401/animation-bug.zip [import]uid: 74537 topic_id: 16810 reply_id: 62966[/import]

i have modify the link in my post [import]uid: 74537 topic_id: 16810 reply_id: 62968[/import]

thank you @oskwish for your response [import]uid: 74537 topic_id: 16810 reply_id: 62969[/import]

@glennbjr do you have any idea ?? this code is too simple look in it and see the animation is stuttering using transition.to()
how can i solve it also i have tried to change 30 fps to 60 which giving me the same result except its faster in animation what should i do ?? in this problem …
thanks in advance [import]uid: 74537 topic_id: 16810 reply_id: 62971[/import]

@oskwish this is the link
ok this code simulates what i mean

download code sample
[import]uid: 74537 topic_id: 16810 reply_id: 62972[/import]

Yeah but that isn’t a lot of objects. [import]uid: 24111 topic_id: 16810 reply_id: 62973[/import]

@oskwish look in the movement its not smooth it make some stuttering [import]uid: 74537 topic_id: 16810 reply_id: 62974[/import]

also when i have one object its movement is so bad and not smoothed as it should be …
[import]uid: 74537 topic_id: 16810 reply_id: 62976[/import]

try the code below on your device instead of transition. it runs smooth on my device

  
local function animate(event)  
 if star.y \<= 800 then  
 star.y = star.y + 10  
 end  
end  
Runtime:addEventListener( "enterFrame", animate )  
  

use a config.lua file like the following maybe

application =   
{  
 content =   
 {   
 width = 480,  
 height = 800,  
 scale = "zoomStretch",  
 fps = 60  
 }  
}  

hope this helps
[import]uid: 38820 topic_id: 16810 reply_id: 62977[/import]

oops, sorry change the 10 to a 2 so the image takes about 5 seconds to get to it’s new position

[import]uid: 38820 topic_id: 16810 reply_id: 62981[/import]

your original code with transition will work smooth with config.lua file and fps set to 60. But I find too many transition objects can slow fps. I usually only use transition in splash screens or main menus. [import]uid: 38820 topic_id: 16810 reply_id: 62986[/import]

thank you @glennbjr but in my game objects should be move do how can i move objects in smooth without transition also i tried to change the logic of movement to move object through runtime enterframe event but this did exactly the same stuttering not all the time changing fps causes comparability issues also if it runs perfect on my samsung galaxy s1 but not all end users have new device they may have old device and want to play my game this will cause issues after publishing my game
thanks in advance [import]uid: 74537 topic_id: 16810 reply_id: 62987[/import]

read this thread

http://developer.anscamobile.com/forum/2011/04/20/terrible-performance-samsung-galaxy-s-crashes-tegra-devices

[import]uid: 38820 topic_id: 16810 reply_id: 62991[/import]

is it from samsung galaxy s1 @glennbjr or its problem with corona embedded functions like transition and translate ?
[import]uid: 74537 topic_id: 16810 reply_id: 71235[/import]