Touch and memory bug?

Hello guys.

I am not sure if this is a bug or just me but I am kind of worry.

Using the GREAT code from Don-Duong Quach (the Corona profiler) I can see that the Lua memory (I modified the code to show lua memory rather than the texture memory) goes up dramatically as soon as I touch the screen and my mouse around on the screen (on the simulator) I can see the same on the actual device (Ipod touch 3rd Gen, Iphone 4 and Ipad 2)

For instance the graph show a nice and steady 300k but as soon I move my finger around the screen the memory jump out to around 500k. It will not bother me if the problem did not seems to also drop the frame rate as well. One the simulator the FPS goes from 64 to 59. One the game itself it seems to make the game slower. I will think that touching the screen should not make such a difference.

http://s7.postimage.org/fo3tmfp0r/touch_Test.jpg

Anybody has an idea or having the same issue? My game is a process heavy and I cannot afford any more drop of frames…

THANKS!

Mo

ps: another piece of the puzzle. I can see that the lua memory goes up and down during the game (sawthoot…i guess the GC in action) shape but when I touch the screen the graph, the period is much shorter. [import]uid: 49236 topic_id: 17392 reply_id: 317392[/import]

@lemsim,

it will depend entirely on what you are doing with your code. Now it would be difficult for anyone to determine what you are doing by looking at the CPU graph or the memory Usage Graph. If that was an indicator, then we would not require any debuggers, would we.

cheers,

?:slight_smile: [import]uid: 3826 topic_id: 17392 reply_id: 65870[/import]

Yes I imagine it is hard to figure out what is happening only from the graph. I am going to make a super simple app with nothing but the profiler running and see. My feeling is that it would show the same result. If I get the same result then I am not sure why just moving your finger on the screen would make the system uses some much more lua memory and also drop the FPS so much? In my game I have a virtual joystick but even on a menu screen, I can see the drop of fps and an increase of memory useage. In my game screen I definitely see my game slow down when moving my finger on the screen even if I do not touch the on screen joystick?

Did you see anything like that before?

Thanks again for taking the time.

Mo [import]uid: 49236 topic_id: 17392 reply_id: 65893[/import]

Yes i have the same issue, in all of my apps. If i touch a Display Object which haven’t any touch event listener, the memory usage is increasing.

I’m developing a game, with many moving physics objects, and by touching the screen the framerate is also dropping, and the background sound is faltering (the playback is not continuous).

Is this a corona bug, or we have to live with this? [import]uid: 88330 topic_id: 17392 reply_id: 67280[/import]

Abel, we really need to see some sample code demonstrating the problem - can you post something, please?

Also, what version of Corona are you currently using? [import]uid: 52491 topic_id: 17392 reply_id: 67382[/import]

I try to make an example, cause the project i’m working on is confidential yet.

What is sure, that only groups recieves this touch event, which increases the memory usage with about 0,05 unit. [import]uid: 88330 topic_id: 17392 reply_id: 67702[/import]

Hey guys,

Just to confirm that I have this same issue as well. I am using build 704. I also experience this issue during the past and old builds but did not bother it because I have runtime touch event.

Now I am experience it even when I have no touch event on the scene.

For example:

  1. Create a project with the “Game” template.
  2. Modify the second scene by having multiple crates moving constantly from top to bottom.
  3. Note that the scene has no touch event at all, but when you upload to your device and move your finger on the screen, you will note that there is a drop in FPS. The crates are moving with slight ‘lag’.
  4. This only happens when you “move” your finger, by just placing your finger in a static condition will not cause this ‘lag’. [import]uid: 12979 topic_id: 17392 reply_id: 74149[/import]

Hey Chang,

Could you file this as a bug report and post the # please?

Thank you :slight_smile:

Peach [import]uid: 52491 topic_id: 17392 reply_id: 74164[/import]

Bug filed under Submission #3540. Cheers! =) [import]uid: 12979 topic_id: 17392 reply_id: 74184[/import]

Thank you change, I’ve made a note of this and will bring it up in our next meeting :slight_smile: [import]uid: 52491 topic_id: 17392 reply_id: 74311[/import]