IOS text performance,slow at first run

Hi,
(iPod4 / GPU rendering)
I have a dynamic textField  (non-TLF) with numbers which  increment +1 on each ENTER_FRAME...like a fast counter.
For example  'tally' the score at the end of a game level, quickly counting up the scores.
My issue:
It often lags in the begining, but then quickly comes up to speed.
I reuse this textField, just adding/removing it from the display list as needed, never nulling it.
What can i do to speed this up?
It's able to handle it great, but once its off the display list for x amount of time, adding it back and starting up that counter lags a little. It does not lag on android GPU.
Is iOS needing to grab ahold of native text engine or something?
thanks!

I'm running into something similar on a project today. Adding dynamic text fields to the project causes a noticeable performace drop for the entire app. Removing them and even nulling them doesn't seem to help. Anyone have a trick for using text fields efficiently?

Similar Messages

  • Performance issue in first run

    Hi Experts,
    I am having one performance issue. In the first run of z program performance is very poor.  but in the second run it is fast. Performance is getting affected at one select query on table FAGLFLEXA. There is no buffering selected at technical setting level for this. Please guide in this case.

    Hello Swapnil,
    Please turn on a SQL trace in ST05 when you experience performance issue again and ask your developer to tune up the z program.
    Thanks,
    Siva Kumar

  • HT1677 My iphone 4S's iOS-6 makes slow the system running.

    Hi,
    as above memtioned, after installing iOS-6, my iphone-4S is slow in running, such as can't open mail, camera and sometime stop.
    how can i slove it, do i need to restore the last version.

    There is no supported method to downgrade the iOS.
    Before leaping to silly conclusions... try basic troubleshooting from the User's Guide.
    Basic troubleshooting is reset, restart, restore (first from backup then as new).

  • Is IOS 5 performing slow?

    My iphone4 is working slow after updated into IOS 5. Especially the games like Bunny Shooter, Ant Smasher etc are working very slow. Importantly, when I touch contacts to make a call, it took 5 seconds to display the number . Everything was working before update, I tried the restore option as well, but it didn't help . Can any one help me fix this?

    I also am very frustrated with the ios 5 update for my iphone 4.  My phone is sluggish, lags, and just doesn't respond as it used to.  I am not happy about this.

  • My performance is very slow when I run graphs. How do I increase the speed at which I can do other things while the data is being updated and displayed on the graphs?

    I am doing an an aquisition and displaying the data on graphs. When I run the program it is slow. I think because I have the number of scans to read associated with my scan rate. It takes the number of seconds I want to display on the chart times the scan rate and feeds that into the number of samples to read at a time from the AI read. The problem is that it stalls until the data points are aquired and displayed so I cannot click or change values on the front panel until the updates occur on the graph. What can I do to be able to help this?

    On Fri, 15 Aug 2003 11:55:03 -0500 (CDT), HAL wrote:
    >My performance is very slow when I run graphs. How do I increase the
    >speed at which I can do other things while the data is being updated
    >and displayed on the graphs?
    >
    >I am doing an an aquisition and displaying the data on graphs. When I
    >run the program it is slow. I think because I have the number of
    >scans to read associated with my scan rate. It takes the number of
    >seconds I want to display on the chart times the scan rate and feeds
    >that into the number of samples to read at a time from the AI read.
    >The problem is that it stalls until the data points are aquired and
    >displayed so I cannot click or change values on the front panel until
    >the updates occur on the graph. What can I do to be a
    ble to help
    >this?
    It may also be your graphics card. LabVIEW can max the CPU and you
    screen may not be refreshing very fast.
    --Ray
    "There are very few problems that cannot be solved by
    orders ending with 'or die.' " -Alistair J.R Young

  • Slow reports giving "An error has occurred: Request timed out" on first run

    I have BO XI R1 SP4 installed on Windows 2003 R2 SP3 with .Net 1.1 installed.
    Most of our reports are quite large (>60000 rows returned) and will timeout in InfoView when first run and give the message in the subject. When you close the window and re-run them then they come up almost straight away.
    This tells me that the report runs and it gets stored in the cache server, which is fine, but I want to be able to eliminate the timeout for the users.
    I found a solution if .Net 2.0 is installed (HOW TO: Resolve 'An error has occurred: Request timed out' issue) but my server only has .Net 1.1.
    Is there a change to a timeout I can made to the server as it is, or should I install .Net 2.0 and change IIS to use that version of .Net then make the solution change already suggested?
    TIA
    I should add that the timeout is after around 5 minutes, so the normal changes recommended at note 1198539 doesn't seem to apply, as the timeout happens after the normal 90 seconds expires for some time.
    Edited by: Geoff Croxson on Sep 3, 2009 2:02 PM

    Will something like this work on an iPhone and where would I locate it?  My App Store was working just fine and this last week it's been slower and slower, plus difficulties with downloading and updates. Both my downloads and updates start and then pop up a 'can't install at this time'. I thought it might b my storage space so I started deleting. Well I have plenty of space now and still get same problem.
    Now over the last two days I will type in a search to reinstall the apps that I removed and the App Store tells me request timed out.
    Help please

  • Applescript freezes upon first run when getting 'text of document 1 of application "Safari" '

    I'm working on an applescript that searches the text of a Safari web page for specific text.  The script  freezes / hangs / times out ONLY during the "first run".  By "first run"  I mean the first time the script is run after a period of time has passed. If the script is run a 2nd, 3rd, or 4th time, etc soon thereafter it works perfectly.  If you then wait an extended period of time again, the script freezes exactly as if it were a "first run".  This appears to be independent of whether Safari is open or closed, i.e. the script freezes even if Safari remains open between the last working run and the "first run".
    Details:
    A web page is opened.  I subsequently confirm the page is fully loaded with the following code set-up as a handler:
    tell application "Safari"
         repeat with i from 1 to 15
         if (do JavaScript "document.readyState" in current tab of window 1) is "complete" then
                             exit repeat -- page loading is complete, exiting loop     
         else
                             delay 1
         end if
         end repeat
         if i is greater than or equal to 15 then return false
         if i is less than 15 then return true
    end tell
    The Applescript event log confirms loading is complete and returns a value of true.  I can see the page is fully loaded, and in testing it is fully functional. All is good.
    I then search the text of the fully loaded web page for specific text.  It is this next step where Applescript hangs, but ONLY on the "first run":
    set searchTerm to "find this"
    if text of document 1 of application "Safari" contains (searchTerm as string) then
         -- do stuff
    end if
    The event log shows that applescript starts to "get every text of document 1" and even returns the initial text of the web page but hangs.  Applescrpt returns the following error: "Safari got an error: AppleEvent timed out.  Error -1712".  If I rerun the script at this point the full text of the web page is immediately displayed in the event log, and the script continues succesfully to the end.  The "IF" statement is not the issue per se because I get the same error if I remove the IF and instead set a variable to the value of 'text of document 1 of application "Safari".
    Bottom line - Applescript seems to hang while returning the text of the fully loaded web page, but ONLY on "first run". Any ideas?
    Note:  I've run this directly as an applescript and as a service via Automator.  Same result. I also tried putting the computer to sleep briefly, wake and rerunning the script.  This does not repeoduce the problem so while extended gaps in use cuases the problem, it does not appear that going to sleep during this time is sufficient to cause the issue.

    Thank you twtwtw, very helpful!
    I tried fiddling around with the name of the input variable(s): $@, $0, and $1, and although I could get it to work somewhat, the hangup was always on high ASCII characters like …, —, °, etc…  (They were called “high ASCII” in the old days, perhaps they are called something else now.)
    Checking the long list of output encodings via iconv --list, and trying a bunch of them didn’t work for me.
    But the real trick that worked for me was to do as you said and to change the “Pass input” menu to “to stdin.”
    However, using -t ASCII was suboptimal for high ASCII, so I changed it to -t UTF-8-MAC and it works perfectly now, all the wild international characters and punctuation are maintained! Hooray!  However, upon further testing, removing the pipe to iconv, it seems it’s not needed.
    So this is the final command:
    awk 'BEGIN{print "<ul>"} {print"<li>"$0"</li>"} END{print "</ul>"}'
    So for now this is the whole recipe to create Contextual Menu Items for the Services menu that replaces text snippets with HTML code surrounding them.
    1. Create a new Automator Service document.
    2. Check the box “Output replaces selected text.”
    3. Choose Actions, under Library choose Utilities, then drag Run Shell Script to the working area of the window.
    4. Set the Pass input menu to “to stdin.”
    5. Paste in the command (above).
    6. Save it; I prefix my HTML CMIs with HTML (space space), so this one is, “HTML  unordered list.”
    7. Begin using it. :-)
    Since it took me a while to cobble together the other ones I made, I should probably share them.  Once I get the time to bring over the other “involved” ones I’ll see if I can find out where is the best place to do that.
    Thank you both, red_menace, and twtwtw for your help!

  • Performance slow down (Run Portal Form)

    performance slow down
    Hi :
    When I code a program and running, it is running speed is very fast. but After I was coded programs about 10 program, it is speed is
    slow down, runing a program must speed 1 minute.
    My portal system totally have 12 programs, when I reinstall portal system. that problem never change.
    Can you tell me why? Thanks.
    null

    Hi :
    Sorry, I don't understand your answer.
    you mean the solution is create index.
    But what table can I create index, oracle portal table or my own apllication table?

  • IOS 5 slowing down first-gen iPad? FIFA12

    Hey guys and girls.
    I'm relatively happy with iOS5 on my first gen ipad. Split keyboard is nice, iMessages too. But I've noticed one issue which is getting annoying. I recently got the FIFA12 game by EA and it ran very well. But after upgrading to iOS5, it is getting considerably slower on graphic-heavy situations. Like stadium lights and shadows at the end of the field.
    Has anyone else noticed iOS5 slowing down first generation iPads? Not only talking about FIFA 12 but maybe other games and apps as well?

    Hey Guys,
    I know this may not solve you're problems or make me all that popular, but 1), you gotta give the developers a bit of time to update and 2), what you are experiencing is common with first adopters. On older devices it makes a lot of sense to wait until the first update. By then you will know the issues and any Apple fixes.

  • Can't seem to sync my iphone 4 running ios 7 with itunes 10.6 running on a mac running osx 10.5.8 What can I do to fix this?

    can't seem to sync my iphone 4 running ios 7 with itunes 10.6 running on a mac running osx 10.5.8 What can I do to fix this? Is there an itunes update? or How can I return to the previous ios?

    To sync an iOS 7 device you need to be running iTunes 11.1.1; iTunes 10.6 is way too old and won't work. You need to install iTunes 11.1.1, but to do that you need to be running at least Mac OS X 10.6.8.
    So you need to do the following:
    1. Upgrade your Mac to at least OS X 10.6.8 (later preferably, but 10.6.8 at the miniumum).
        a. Check first to see if your model Mac can be upgraded, check that it has enough RAM and so forth (2GB at the least, more if possible).
        b. If you can't upgrade your Mac, or don't want to, then you will have to buy a new Mac with the latest version of OS X (currently 10.8.5, soon to become 10.9) and iTunes 11.1.1
    2. Install iTunes 11.1.1 on your newly upgraded Mac.
    3. Sync your iOS 7 iPhone with iTunes.

  • HT1355 Why is the new iOS 6 so slow on the App Store?

    Why is the iOS 6 so slow on the App Store?

    Agree the new ios6 is much slower. I found this post by doing a search to find out if it was only me. I've done off &amp; on &amp; a soft reset. Neither helped. Everything seems to load much slower &amp; hangs.
    Maybe the new apps aren't optimized yet. However, I had one of my worst experiences with the Apple App Store. One would think they'd know how to optimize their own site &amp; app.
    I just hope it's not a bloat issue because the "upgrades" are not worth the performance trade offs to me.
    Also, the iMaps are definitely not ready for prime time. I tried getting directions between two locations that were very mainstream and the app said it couldn't provide directions. I'll take Google without turn by turn, thank you. At least let us have a choice and let the best app win.

  • FlasCC compiled swc library is very slow on first function call - how can I speed it up?

    Hi everyone,
    I have a C++ library that fits a mesh onto images of faces, now compiled into an swc.
    I have just exposed one function from the library, that operates on a BitmapData and returns a Vector of Points indicating various parts of the face.
    The problem is that the first call to the library (to process the first image) seems to take about 10 seconds. After that repeated calls take a fraction of a second.
    Is there any way I can improve the performance on the first call, by initialising my library class in an init method or something? In the target application most users will only call the library once, so I need to improve this.
    UPDATE: Profiling in Flash Builder, the [verify] action (which I understand is JIT bytecode verification) takes 10.1 seconds. The other main culprits are [avm1] (1.7s) and global$init.global$init (2.0s).
    Can this be normal behaviour that JIT verification takes 10 seconds? Or can I speed it up? The source C++ code is probably 100,000 lines because it includes several modules from OpenCV, however so does Alex Mac's OpenCV demo and it doesn't take this long.
    Below is the code for my library wrapper. Very grateful for any help!
    #include <AS3/AS3.h>
    #include <AS3/AS3++.h>
    #include <Flash++.h>
    #include "FlashCLM.h"
    using namespace AS3::local;
    // First we mark the function declaration with a GCC attribute specifying the
    // AS3 signature we want it to have in the generated SWC. The function will
    // be located in the com.FrameFish namespace.
    void fitCLM() __attribute__((used,
              annotate("as3sig:public function fitCLM(img:BitmapData,shape:Vector.<Point>):int"),
              annotate("as3package:com.FrameFish"),
              annotate("as3import:flash.utils.ByteArray"),
              annotate("as3import:flash.geom.Point"),
              annotate("as3import:flash.display.BitmapData"),
              annotate("as3import:flash.Vector")));
    void fitCLM(){
              AS3_Trace("fitCLM starting");
              // Copy pixels to C ram
              inline_as3(
                        "var ba:ByteArray = img.getPixels(img.rect);\n"
            "var imgPtr:int = CModule.malloc(ba.length);\n"
                        "ba.position = 0;\n"
                        "CModule.writeBytes(imgPtr, ba.length, ba);\n"
        uint8_t* pixels = 0;
        AS3_GetScalarFromVar(pixels, imgPtr);
              // Get the width and height of image
              inline_as3(
                        "var w:int = img.width;\n"
                        "var h:int = img.height;\n"
              int width, height;
              AS3_GetScalarFromVar(width, w);
              AS3_GetScalarFromVar(height, h);
              // Fit CLM
              ff::FlashCLM clm;
              int shapeSize = 58*2; // Size of the imm_face_db markup
              int* shapeBuffer = new int[shapeSize];
              int result;
              clm.fit(pixels, width, height, shapeBuffer, &shapeSize, &result);
              // Copy shape to as3 shape vector
              if (result == ff::FlashCLM::FOUND){
                        for (int i=1; i<shapeSize; i+=2){
                                  inline_as3(
                                            "var x:Number = %0;\n"
                                            "var y:Number = %1;\n"
                                            "var p:Point = new Point(x,y);\n"
                                            "shape.push(p);\n"
                                            : : "r"(shapeBuffer[i-1]), "r"(shapeBuffer[i])
              // Clean up C memory
              inline_as3(
                        "CModule.free(imgPtr);\n"
              delete shapeBuffer;
        // return the result (using an AS3 return rather than a C/C++ return)
        AS3_Return(result);
    int main(){
        // We still need a main function for the SWC. this function must be called
        // so that all the static init code is executed before any library functions
        // are used.
        // The main function for a library must throw an exception so that it does
        // not return normally. Returning normally would cause the static
        // destructors to be executed leaving the library in an unuseable state.
        AS3_GoAsync();

    I never did get to the bottom of it. I got this response from Alex Mac:
    It's hard to give good advice at the C++ level because the problem is more
    of  a code generation issue. When a function ends up requiring too many
    registers to be live at once the resulting AS3 code can in some cases cause
    the verifier to take a long time to run. Exception handling and
    setjmp/longjmp can contribute to this, but so can things beyond your
    control when LLVM inlines too much into a single function and ends up
    generating unreasonable code...
    In the end I moved most of my C++ code out of flash and on to a server. To
    me flascc was a nice idea but didn't live up to the hype

  • Most of the crap ios 7 very slow I want to go back to ios 6.

    Most of the crap ios 7 very slow I want to go back to ios 6.

    Something may have gone amiss in the upgrade to iOS 7 on your iPhone.
    To correct this follow these steps:
    1. Backup your iPhone using iTunes or iCloud.
    2. Use iTunes to completely restore your iPhone as new.
    3. Monitor performance to see if it is normal. If not, you may have a hardware problem - if so, contact Apple support.
    4. Restore your iPhone from your backup above.
    5. Check performance to confirm that it remains normal.

  • Do While Looks strange - Printing w/o Data on first run & Another Anomaly

    OK, what is happening is that I have the following code which
    prints out the
    title in an h3, then prints out a link with "full story" text
    in it.
    My problem is that I am getting a blank link at the beginning
    of this block.
    <?php do { ?>
    <h3><?php echo $row_rsNews['newsTitle'];
    ?></h3>
    <a href="news.php?cid=<?php echo
    $row_rsNews['newsID']; ?>">Full
    Story</a><br />
    <?php } while ($row_rsNews = mysql_fetch_assoc($rsNews));
    ?>
    Outputs:
    <h3></h3>
    <a href="news.php?cid=">Full Story</a><br>
    <h3>Youth Education Program</h3>
    <a href="news.php?cid=5">Full Story</a><br>
    <h3>Katy Trail Biking Trip</h3>
    <a href="news.php?cid=15">Full
    Story</a><br>
    <h3>Choir Chili Supper Plans</h3>
    <a href="news.php?cid=9">Full Story</a><br>
    1. Notice that my first run of things are not showing
    correctly
    2. And this is the weird one - look at how my <br />
    tags have changed to
    <br>.
    Any ideas? I'm about lost on this one.
    TIA,
    Jon Parkhurst
    PriivaWeb
    http://priiva.net.

    OK, here is my complete code block for my news section. This
    page is goign
    to be redone, but I would still like to understand why it's
    not working -
    why I'm not correctly resetting a recordset.
    Recordset rsArticle is only populated if gID is sent in the
    url
    Here we see that the rsArticle to be displayed is only shown
    if there is a
    gID:
    <?php if ($totalRows_rsArticle > 0) { // Show if
    recordset not empty
    ?>
    <h2><?php echo $row_rsArticle['newsTitle'];
    ?></h2>
    <p><?php echo $row_rsArticle['newsAuthor'];
    ?><br />
    <?php echo $row_rsArticle['newsDateEdited'];
    ?></p>
    <?php $mc_pic = $row_rsArticle['newsPicture'];
    if ($mc_pic != "") { ?>
    <img class="newsimg"
    src="app/app_get_img.php?image_path=<?php
    echo $mc_pic?>&sz=article" />
    <?php }
    echo $row_rsArticle['newsContent']; ?></p>
    <?php } // Show if recordset not empty ?>
    And here is the code to show if there is no gID:
    <?php if ($totalRows_rsArticle == 0) { // Show if
    recordset empty ?>
    Here is the first DoWhile statement, to repeat all *other*
    records. the
    rsNews Recordset is built using get all articles <>
    gID. If no gID, it
    fetches them all for a full listing, if gID, then it fetches
    only the
    articles NOT displayed by rsArticle. Cool so far, right?
    <?php do { ?>
    <a class="pbutton" href="news.php?cid=<?php echo
    $row_rsNews['newsID']; ?>">Full Story ...</a>
    <h3><?php echo $row_rsNews['newsTitle'];
    ?></h3>
    <?php echo $row_rsNews['newsShortDesc']; ?>
    <?php
    } while ($row_rsNews = mysql_fetch_assoc($rsNews));
    Now here, I'm *attempting* to reset rsNews to the first
    record in the
    recordset, so that I can reuse the recordset for another part
    of the page.
    Again, on this page it's not really necessary, but I have
    other areas of the
    site that this is crucial for me to be able to implement.
    mysql_data_seek($rsNews, 0);
    ?>
    Then it closes out the final If recordset is empty
    <?php } // Show if recordset empty ?>
    The reason I'd rather do this than just create another
    recordset is mostly
    simplicity. If I'm going to create another recordset, then I
    see little
    value in the recordsets - I can just set string variables and
    re-send a SQL
    statement. However, that method leaves the SQL as non DW
    accessible.
    Unless I'm missing something?
    Thanks for taking a look, if you get the chance. If you
    don't, I'm goign to
    keep trying to figure out a way I can do this.
    TIA,
    Jon

  • Query performance slow

    Hi Experts,
    Please clarify my doubts.
    1. How can we know the particular query performance slow in all?
    2. How can we define a cell in BEx?
    3. Info cube is info provider, Info Object is not Info Provider why?
    Thanks in advance

    Hi,
    1. How can we know the particular query performance slow in all?
       When you run the query it's take more time we know that query is taken more if where that query is taking more time you can collect the statics.
       like Selct your cube and set BI statics check box after that it will give the all statics data regarding your query.
      DB time (Data based time),Frent end Time (Query), Agrreation time like etc. based on that we go for the perfomance aggreations, compresion, indexes etc.
    2. How can we define a cell in BEx? 
       In Your Bex query your using two structures it's enabled. If you want create the different formulate by row wise you go for this.
    3. Info cube is info provider, Info Object is not Info Provider why?  
        Info object also info provider,
        when your info object also you can convert into info provider using " Convert as data target".
    Thanks and Regards,
    Venkat.
    Edited by: venkatewara reddy on Jul 27, 2011 12:05 PM

Maybe you are looking for