text drawing is slow(ish) on 3.0 on iPad 3 [LATER]

SohoJoe

  • Posts: 39
I'm working on app with a lot of text and I'm struggling to keep 60fps on a iPad3 - to check that I wasn't doing anything dumb in my code; I created a simple scene that just repeats the same line of text until the screen is full

with a font that is sans Serif, size 10, normal format - I get 52fps on my iPad3 in portrait mode.

 


« Last Edit: January 23, 2013, 01:32:50 pm by Jon »

Jon

  • *
  • Posts: 17524
Could you attach that sample to this topic, so I can check (the exact same game) on my device?

SohoJoe

  • Posts: 39
Sure - here you go; I'm getting 52-53 fps on my iPad3

Jon

  • *
  • Posts: 17524
I'm going to punt this one. I debugged a bit in the simulator and commented out a line that actually does the drawing.

That shot it up to 60, but that is a) native internal code to NME/haxe and b) is already hardware accelerated. Contrary to my intuitions, none of the calculations or whatever are making it slow.

There may be some thing else I'm missing, but that's how it looks to me right now and doesn't look immediately solvable. That said, drawing text to fill up the screen is pretty intense.