Skip to main content
Inspiring
June 16, 2011
Answered

gpu font render issue air 2.6

  • June 16, 2011
  • 1 reply
  • 1132 views

ok so I have an air for ios 2.6 app where 10 ladybirds walk onto the screen and have words attached to them. They walk on using a tween. When they have no text on them and the app is set to GPU mode its a really smooth animation. But when the text is applied to them its unworkable. I assume this is because the text is a vector.

I need the text fields to be dynamic and ideally i want them to be part of the tween.

What do i need to do here to improve this performance?

This topic has been closed for replies.
Correct answer Colin Holgate

hey colin

actually I have a word on each ladybird and there are 220 different words it could be

what would i do in this case?


Then put the word into the field in the movieclip, and then cache the movieclip.

1 reply

Colin Holgate
Inspiring
June 16, 2011

I assume it's one letter per ladybird? That is, you're not too worried about letter spacing?

If that's the case, make a movieclip that is about 80 frames long, and each frame has on it a bitmap that looks like the letter you want to show. Then take your dynamic phrase variable and jump to the matching frame for each letter. Once you're at the frame do a cacheasbitmap and cacheasbitmap matrix.

Colin Holgate
Inspiring
June 16, 2011

Or alternately, have a text field in the movieclip, fill it in with the letter from the variable, and then cache the movieclip.

joeboy_ukAuthor
Inspiring
June 16, 2011

hey colin

actually I have a word on each ladybird and there are 220 different words it could be

what would i do in this case?