Updating text objects with text_obj.text makes physics very slow on Android.

Hello. I’m making a car game, where I must be updating the distance, all the time.

I have a text object created like this

local distance\_text = display.newText("",8,40,350,36,native.systemFont, 13)

And to update the text object I do this:

 distance\_text.text=max\_distance\_ran

This is enought to slow down the physics, to like if they where at 10 fps. But cheking the FPS it keeps between 40 and 60.

Just commenting the like  distance_text.text=max_distance_ran makes everything run smooth.

Even updating the text object inside a performWithDelay doesnt solve.

This problems happens only on Android device. Tested on a Galaxy Tab 7’’, Android 2.2. At the iphone everything works fine.

I’m using the latest corona version.

Hope anyone know a solution.

Thank you.

Updating text is a slow process in general, see last wednesday’s blog post: 

http://www.coronalabs.com/blog/2013/06/26/wednesday-faqs-display-text-objects/

If it’s just the one text object though, then I’m surprised it’s having such a big impact.

Hello. Even updating just one text object cause some slow down. Not so noticeable but it’s present.

It must be a bug. Id like to have some answer from the corona staff.

thanks. 

I know you guys don’t like it when we ask for this, but can you please file a bug using the “Report a Bug” feature above?  You will need a sample app that demonstrates the problem.  There isn’t enough information in this post to get the engineers started trying to track this down.  One text field should not bring your app down to it’s knees. 

Updating text is a slow process in general, see last wednesday’s blog post: 

http://www.coronalabs.com/blog/2013/06/26/wednesday-faqs-display-text-objects/

If it’s just the one text object though, then I’m surprised it’s having such a big impact.

Hello. Even updating just one text object cause some slow down. Not so noticeable but it’s present.

It must be a bug. Id like to have some answer from the corona staff.

thanks. 

I know you guys don’t like it when we ask for this, but can you please file a bug using the “Report a Bug” feature above?  You will need a sample app that demonstrates the problem.  There isn’t enough information in this post to get the engineers started trying to track this down.  One text field should not bring your app down to it’s knees.