Lag in Performance

I am using "Array Size" and "Array Index" functions to read an array file in disk so that I can obtain the array dimensions, in this case X-Rows x Y-Columns. I am doing this so that I can show the user the choices and need to INDEX through the array line-by-line and split the "," delimited fields in Indicator Controls. All worked well when the application as first RUN. The problem arrises when the task is completed and another run is started without stopping the application. The issue is with the initialization of the variables. When I set them in the Front Panel using "Make current value default", the two functions "Array Size" and "Array Index" take longer to read the file than the initialization and they get overwritten by the functions when they eventually read the file. Eventually, the functions return the correct value, but by then I am long gone doing other things with the wrong values.
Any help please.

Are you using local variables? You mention "initialization of variables".  It sounds like you have a race condition.  That is code that you can't control the order of operations, yet you need to control the order of operations.  If you have a section of code that depends on the correct values of Array Size and Array index coming from the file, you need to be sure that that the section of code can't execute until that data is available.  That means using wires from one section of code to the next.

Similar Messages

  • Sudden, unexplainable lag and performance problems making gaming impossible

    Last week I was happily gaming with all the settings on high.  I went away for the weekend and when I came back, it is absolutely impossible to play because of lag.  When I put all the settings at their very lowest, it is almost possible to play but, of course, the images look terrible.  What happened?!
    I have a dv7t-6000 pavilion.  I tried installing the latest drivers for my graphics card, but when I did that the game was simply a black screen and wouldn't pull up at all, so I uninstalled them.  Now it runs, but only just.  I have all updates for Windows 7 64-bit.
    I'm still under warranty, do I need to ask for a new video card, or what?  

    Give me your graphics card specifications and name.  Most likelyl it's the switchable graphics issue, like in many of the other HP laptops out there.  What you can do, if you are still under the 21 day return period, is that you can return you laptop and exchange it for another laptop, or gert a full refund altogether.  I would recommend this since HP is not a great gaming notebook brand.

  • MacBook Pro typing lag, slow performance, bad battery

    I upgraded to my current MBP from my last MBP because the older one wasn't perfoming well. Now I'm having the same issues with my new MBP. 
    Current: 2012 15" MBP Retina Display, 2.6 i7 Quad Core, 16 GB RAM, 500 GB SSD, running OS X 10.8.3 and Windows 7
    Old:  2010 13" MPB 2.26 Intel Core 2 Duo, 4 GB RAM, 250 GB HD, running OS X10.8 - starting running slowly after I loaded Lion
    There is a crazy tying lag and it takes forever to type anything. It's frustrating not seeing what is going on. I'm trying to do my school work but it's impossible since everything takes forever and I make so many mistakes.  If I move the cursor at al before the lag is over and what I typed finishes , it starts writing the text where I move the cursor.  Then if I try to delete anything, it gets worse. 
    Worst part - THIS computer works faster than the newer pros:  13" White Macbook - 1.82 GHz Intel Core Duo, 1 GB RAM, 80 GB Hard Drive w/Snow Leopard
    I'm so incredibly frustrated right now.  I never had these issues on the Dells or other cheaper notebooks I owned. 
    Web pages seem to load fine, but I'm unable to scroll for about a minute after the pages load and typing is awful.  I've had issues with one browser window open and nothing else running (broswer doesn't matter. It's slow in Safari and Chrome.) 
    Also my battery lasts about 100 minutes with both operating systems in use.  It goes down 1% every minute!

    As far as the battery I'd recommend calibrating it and taking care of it per these two articles:
    http://www.apple.com/batteries/
    http://discussions.apple.com/thread.jspa?threadID=1764220
    On your slow booting issue check System Preferences-Accounts-Login Items and then see if you have applications that are loading that you don't need. If you do highlight them and click the - at the bottom of the box.
    Roger

  • Macbook Pro Retina 13" late 2013 lag

    Hello everybody,
    4 days ago i bought Macbook Pro Retina 13" late 2013. overall i like it as a first time mac user.
    my problem is it feels very slow and unstable and laggy.
    After some testing:
    1024x640 (Larfer Text) - no lag best performance
    1280x800 (Best for Retina) - some lag
    1440x900 (Middle) - Some lag
    1680x1050 (More space) - Lots of lag
    The lag is most visible when scrolling, resizing the window, and overall performance of third party applications for example netBeans is very slow under highest resolution and even with best for retina.
    But what is interesting is when i conect the macbook pro to an external tv using hdmi there is no lag, very smoth.
    I have contact apple support couple of times since i get the device, i even went to the apple store genius bar., all their representative in the apple store pretended that everything is ok with the mac, but some phone representative agreed with me that i have to lower the resolution when using some applications. basically there is no solution for the lag.
    i am very disappointed with this issue. I should be able to use any resolution I want without any lag. 
    sometimes i can not feel the fast SSD it feels like an old HDD.
    I think its unacceptable to pay $1500 for a computer that doesn't work as advertised
    I think i am going to return it until they find a solution
    Are you experiencing this problems with your macbook pro retina

    Here is my post on another Forum. My problem with the UI is now solved :
    hi there,
    same problem here. i had a mba 13" 2012 and wanted to switch to rmbp 13 because i need more real estate.
    i sold the mba on ebay, but had a few days to compare my rmbp and mba side by side. both with exactly the same software configuration and OS Mavericks.
    the mba was obviously snappier and i didn't know why.
    after reading tons of threads, exchanging the rmbp one time and being frustrated i discovered this thread.
    so i downloaded RDM, set the resolution to 1680x1050 (non-high-dpi!!!) and there it is, a snappy rmbp with mavericks.
    (for me real estate is more import than a shiny retina thinggy, but also i don't see a bit difference between 1680 hiDPI and 1680 "normal")
    i suspect the os isn't yet optimized, but i am far away from a software expert.
    here is the link for RDM:
    http://www.reddit.com/r/apple/commen..._resolution_to

  • Slow/lag perfomance 13'' late 2011 macbook pro

    im experiencing slow-ish and lag-ish performance from my macbook pro.. but when i plugged my magsafe, its running smooth and fast. what should i do to fix this kind of problem reply asap!! im using OS X 10.9.3

    How old is your computer? The battery may need to be replaced.
    Battery Cycle Count
    Battery Status Menu – Mavericks - About
    Battery Testing
    I asked the hosts to move your post to the Mavericks community since you are running 10.9.3

  • 4s lagging all over with Apple and Non Apple apps freezing with iOS 8 and 8.0.2 never did before, plus lock screen lag, multitask lag on iPad mini as well

    Well the next update fix all the lag and performance issues on the iPhone 4S and iPad mini?  It seems that multitasking ways down the phone's performance.
    iOS 8.0.2 keyboard freezes in landscape mode.  Our seamless experience has now ceased to exist so far with the update 8.0.2

    Well the next update fix all the lag and performance issues on the iPhone 4S and iPad mini?  It seems that multitasking ways down the phone's performance.
    iOS 8.0.2 keyboard freezes in landscape mode.  Our seamless experience has now ceased to exist so far with the update 8.0.2

  • May I face any problem (like lagging) after upgrading to OS X Yosemite?

    I have a macbook pro 13 inch retina display (Core i5, Ram: 4GB, 128 GB SSD etc). Is that configuration okay for the upgrade? or may I face any kind of problem (lagging in performance etc) in future?
    thanks!

    I have a 2011 MacBook Pro and with Yosemite the machine runs faster.  The memory usage algorithm is significantly better so the memory pressure is about half of what it was under Mavericks.
    If you install, first thing to do is then open Disk Utility and Repair Permissions then restart.  They seem to be messy  after the install.

  • Lightroom 4 performance issues solved!

    Buy or build a new computer - (intel i7 3770K or similiar) overclock to 4ghz, 16GB ram, solid state drive for boot and programs
    Install only windows, lightroom, photoshop, and windows security on computer.
    Put computer power management into high power mode (keeps the processor prepped at all times)
    turn off all development modules except basic and tone curve.. (especially evil histogram)
    This has gotten me almost lag free performance while editing in lightroom.... and I say almost because it's still not pefect . With this setup I can finally crop photos without having to wait a second or more for the draw tool to become responsive... but not in full screen mode of course.
    By the way, I think that these types of contortions are ridiculous since I used to have lag free editing in adobe camera raw on a computer with 1/16 the hardware specs (and running vista!). However the workflow is so much better in lightroom than any other option that I'm willing to bend over backwards to make it work.  So, adobe, here is your notice... We're all looking for something better.

    JimHess wrote:
    that's just what I think.
    Me too. From best I can tell, it's karma, luck, will o' th' gods...
    Works unencumbered on some moderately-powered machines, slow-as-molasses on some high powered machines, or vice versa - both Windows & Mac.
    That said, rebuilding computer forces new drivers for system devices, and re-initializes a bunch of stuff - which may contribute to performance.
    Reminder: abnormally poor performance occurs when Lr is getting held up, instead of doing it's thing - whether that happens or not is dependent on a lot of factors... - point being, if Lr4 is operating normally (meaning efficiently / unencumbered) on 2 computers, then it'll be faster on the faster machine of course, but the big trick is taking away the hurdles...
    Congrats to OP for taking the initiative to improve his/her situation .
    Interesting tidbit: My Lr performance often goes south when my internet connection drops out - which it does far too often where I live and do most of my work from. Why? I have no idea, but if I had to guess I'd say Lr is using some library that does some system call, which gets hung up when it had an internet connection but lost it - such is not handled gracefully, memory is not released, and it keeps happening..., or something like that. I know some folks problems were due to having wonky DVDs in their drive, or USB phones connected, or monitor cal devices... - doesn't take much, and not everybody will have the same problem due to the same thing...
    Even though my luck has been relatively good w/Lr4, I do hope Adobe takes a serious look at how they're doing things...
    R

  • Did you MacBook Pro Retina performance improve significantly with Mavericks 10.9.5?

    My MacBook Pro Retina (Early 2013) is one of the unfortunate ones that suffered from extreme scroll lag and performance slowdowns.
    Beginning day one, I've had to employ workarounds such as using gfxCardStatus to force Discrete mode or to use a non-HiDPI resolution to reduce the symptoms.
    To my surprise, when I upgraded to Mavericks 10.9.5, nearly all my issues have been resolved. I'm back using high resolution modes without a single bit of slowdown. Scroll lag is also minimal or entirely gone. The last issue I have is with the Applications dock folder and the 'folder' viewing mode still producing severe lag, but I can live with that as I use Alfred to launch my applications anyway.
    Has anybody seen noticeable improvements like me? I queried others on MacRumors, but didn't get much feedback.

    Adobe Application Manager was the culprit. For some reason with the XI install, Adobe Application Manager would not launch. I was able to resolve by deleting all
    ~/Library/Preferences/ associated with older versions of Adobe and by cleaning out ~/Library/Application Support/Adobe/Acrobat

  • AC Power needed for full performance? (GT680)

    I recently got my new MSI GT680  I'm really satisfied, it has more than surpassed my expectations.
    That's all fine and dandy until last night when I said I'd give Street Fighter IV a go, I put all the graphics settings on the highest spec and then ran the benchmark, it was hitting an average of 15FPS!  I closed the game and just sat down with a really dissapointed look on my face then I thought, meh, I'll see what happens with the AC power plugged in and BAM, it was hitting 65FPS+ 
    Any way, my point is, do I HAVE to have the AC power plugged in to have decent performance or is there a setting configuration that I'm missing? If I do have to have it plugged all the time then I'll be pretty annoyed as it kind of defeats the purpose of a laptop.
    Thanks in advance for any replies

    Yeah I have a GT780 and I'm interested in running from DC power as I have a 36AH lead acid battery. I thought about getting another notebook battery but decided against it when it lagged in performance on notebook battery power.
    FYI, I ran it on a 300W inverter and it ran for an hour and a half.
    I think a DC adaptor would be more efficient but you can't get DC power on 19.5V and 7.7A, Jaycar have an adaptor that runs on 19V and 8AH but I was warned not to use it.
    Daryl.

  • LOW PERFORMANCE MAY BE DUE TO BIOS UPGRADATION

    I upgraded to BIOS version f.42 and i am noticing lagging and performance issues in my laptopn ,should i downgrade?

    Take a look into this  http://support.microsoft.com/kb/2146315
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Extremely poor Java performance

    I've been experiencing particularly bad performance from Java applications lately, seemingly out of nowhere. I'm seeing a noticable lag when performing operations where there previously were none, and longer operations are taking painfully long now. This is in an application that is manipulating binary files with a Swing GUI.
    I updated to the latest version of the JRE (1.5.0_07) and it didn't help. Are there any oddball things I should be looking for, or things to change that might improve my performance?

    Perhaps you are dealing with larger and larger data files?
    Or the machine has fewer free memory due to other apps running?
    The symptom you describe (of sudden slow down,
    and noticeable lags) could be when the JVM performs
    garbage collection to cope with reduced memory.
    One thing you might want to observe is looking
    at the process size (Use the "top" command in UNIX,
    or use the process explorer on Windows).
    Another thing you might want to try is to run your program
    with profiling option turned on, so that you can see
    which method/class is taking most of the time.

  • G4 Imac Lagging horribly with my stock brokers' software.

    I use Scottrade and Interactivebrokers and my G4 imac runs awful on IBs Trader Workstation. When the market is closed I can manipulate the stocks and enter bids and offers and such but once the data is streaming in everything lags. Dropdown menus come down blank and take a minute or two to show the words. When I enter a price or delete items they take WAAAAAY to long to react. I'm not exactly a daytrader but occasionally I'm jumping on short term trades where an offer or bid are only there for a few seconds and I can lose a couple hundred bucks or worse in an extreme case. Scottrade functions much better for entering and exiting positions but the whole data feed lags back 2-3 minutes in a heavy market so I'm seeing dead info. Also, the charts are all confounded by errant "ticks", trade data that's out of whack because of the problems streaming the data. Any ideas on how to fix this?

    Hi there...
    If the lag and performance issues are within the iMacG4 and not the web
    or on the sites that may or may not support the Mac OSX and browsers or
    other software used to access their trading features, you may be able to
    do some routine system maintenance to help. Since you don't say what
    you do or how often, or the status of your computer in general outside of
    the issues you face in one context of use.
    If the performance is due to an over-full hard disk drive, that should be
    addressed by freeing-up space for the system and applications to work
    better. In these systems, you need to keep a fair amount of drive space
    free (empty) and in some cases, disk utilities that offer features not found
    in the bootable version of Disk Utility on the OSX installer disc #1 should
    be investigated to find out what combination would be best to have on
    hand and use a few times a year before a problem takes down a drive.
    And if your computer has sufficient hardware RAM resources, it may not
    have to rely as much on free hard drive space to use as virtual memory;
    even so, it will use a significant amount (and can reach for that instantly)
    and using virtual memory from a full hard drive becomes increasingly
    impossible. Virtual memory is actually a read/write/read of the hard drive;
    so the computer drive works harder and a machine may run warmer, too.
    Your machine may not need a full 2GB of RAM but with labor intensive
    applications and mult-tasking, more is always better. The machine (if a
    USB 2.0 model) can support up to 2GB RAM, aftermarket. RAM has
    come along way in three years and these machines can see/use it.
    Even booting the machine up in SafeBoot and running the computer's
    version of Disk Utility> repair disk permissions; then restarting can
    help clear a few cobwebs, so to speak. I do that, usually after what
    may be called (by others) a problematic software update; and do a
    permissions repair before and after software installs/updates. A few
    times a month, I may run the OnyX utility interface and have it do
    things as I don't want to learn the unix underpinnings (console, terminal.)
    Not to say the application in question above and maybe your internet
    access may have their own problems; but system issues can slow all
    other things. If you can outline your computer's status, help may be
    more directed at specific areas where problems have been known to exist.
    Hopefully this helps, and good luck.

  • Successful update on a 3G--here's what I did

    I read a lot of threads here before deciding to take the plunge to update my 3G to OS4. I was able to update successfully thanks to the things I learned here, so I thought my experience might be helpful to someone else.
    Here's what I did:
    1. Installed the newest version of itunes.
    2. When itunes asked me to download/install OS4, I chose download only.
    3. While it was downloading, I asked it to transfer purchases from my phone to itunes. I copied all pictures to my computer and copied the itunes music folder to an external hard drive. And this became important later---in the itunes folder, there's a folder called Mobile Applications. I copied this to my desktop.
    4. I synced my phone so there would be a new backup.
    5. After some trial and error with the "update" button, I decided to go the "restore" route. I clicked on "restore" while holding down Shift, and it opened a folder for me to find the file I wanted to use. Vista puts the iphone update file in computer name/appdata/roaming/apple computer/itunes/iphone software updates. I clicked on the OS4 update.
    6. It restored the phone as a new phone, which was pretty fast. Then it asked me if I wanted to sync using a previous backup, so I selected the backup I had done right before restoring. It put all my data and settings back during this process (about 20-30 minutes) but did not return my apps or music.
    7. Once it finished restoring from the backup, I synced again and it put some of my apps and all of my music back on. A few of the apps wouldn't sync, so I went back into the Apps part of itunes (not the one within the phone, but in the itunes library) and saw that there were exclamation marks next to some of the apps. When I clicked on one, it asked me if I wanted to find the file. I found the copies I'd put on the desktop and clicked it, and it asked me if I wanted to do the same thing for all the apps whose files were missing. It restored all of them that way, and I was able to sync again and put them on the phone. Then I rebooted the phone, and that was that.
    All said and done, it took <3 hours. When I'd tried going the "update" route a week or so earlier, after three hours the "backing up" progress bar had moved only microscopically. So this was, by far, preferable.
    My phone is fast--no problems with lagging or slowness that I've noticed. I love the folders--I went from 7 pages of apps to three. The consolidated email is handy, and the ipod app now lets you edit playlists from within the phone. My only complaint is battery performance--I hadn't been impressed with the 3G battery to begin with, and now I think it's been reduced even further. But I didn't have any of the problems I'd been reading about here for the last few weeks.
    I think Apple should do a better job of giving update instructions (not just "click update now") for older phones, rather than leaving it to user trial and error. But thanks to others' experience, my update was successful and I hope in turn to help someone else.
    Message was edited by: Melissimo

    I will post here, since this is a hot topic and I know people want help on this....I was successful with upgrading my 3G to 4.0 the first time out, got lucky I guess. I followed what was supposed to be the standard protocol and it took around 2 hours to complete without a hitch. However, I still noticed a significant lag in performance on opening most apps, iTunes, etc. I decided it was wasn't worth the few added features and after I was forced to downgrade my wife's 3G ( a brand new replacement phone one week old, since her camera had gone bad under the extended warranty - her's was crashing and hanging right and left after the 4.0 upgrade) I downgraded mine as well, and appreciate getting all the speed back. I did try the hard reset a few times, which did seem to help, but the speed is significantly better under the old 3.1.3 system from my experience.
    I did lose my text messaging history, as well as pics and phone messages, but had the pics backed up, could call to listen to my stored messages and have a me.com subscription for syncing email, etc. so in the end all I lost was my SMS history, along with setups for passwords, networking, etc.
    I will probably buy the new phone in a couple of months after it's stable, but I personally don't think the upgrade is worth the performance lag on a 3G. Who wants to stand around (or take your eyes off the road!) while waiting for a screen to load, so you can check messages, answer a call, etc.) Yes, I use a headset while driving, but still take calls when the road is clear, but the lag time was frustrating. Kind of like working on a Mac 20 years ago and waiting, waiting, waiting.....
    The sequence for downgrading mentioned elsewhere in these threads worked for me with the option key selection on the restore button, and the use of the 3rd party software (rec? something? sorry) to force quit the phone at the end of the restore. It's been posted several times. Sorry to hijack this post in a way, but you should know that, yes, the upgrade can be performed successfully, and it may not be worth the loss of performance, and, yes, you can successfully downgrade, but you will lose some personal info.

  • S540 low performanc​e

    Hello everyone,
    My issue is - brand new Lenovo s540 works very slow. Symptoms:
    1) HD video playback lags (i have descibed it here https://forums.lenovo.com/t5/ThinkPad-Edge-S-serie​s/s540-HD-video-playback-lags/td-p/1843284)
    2) Low benchmark results. For instance, Cinebench "CPU multi 64bit" result is only 70 points (should be around 230 - 250)
    3) Lags in performance demanding apps, MS Visual Studio, Chrome development tools.
    Spec is i7, SSD, 8GB RAM, intel HD Graphics and Radeon HD 8600M
    I have tried OS refresh, installed all latest drivers via Lenovo update (including bios update) - didn't help.
    Lenovo diagnostic tool says everything is fine.
    Whati it is, hardware failure ?

    tlee wrote:
    Hello,
    I am using x201: i5-540M / 4GB Ram / 500GB HDD / Win7 HP 32bit. However, I am not satisfy its performance. (no more unused 3rd parties start up program and did the disk defragment already)
    Since, i am using the 65W power adpater.
    I wonder whether to enable Turbo-Boost of  i5 - 540M, even using 65W adpater. As I know Intel is allow i5-540M boost its core1 automatically (depends on some condition)
    Does it need to 90W adapter + attached battery to allow Turbo-Boost feature in x201 ? Could Lenovo modify x201 BIOS to enable Turbo Boost even only attached 65W adapter ?
    Thanks!
    There is a turbo boost service in the services for windows 7. You may need to start the service.
    Intel also has a turbo boost monitor program.  It is a bar graph that shows your clock speed.
    http://downloadcenter.intel.com/Detail_Desc.aspx?a​gr=Y&DwnldID=19105&lang=eng&OSVersion=Windows%207%​...

Maybe you are looking for