SmartFX Best Place to Check Out Parameters

I have a fully functioning plugin (woo hoo!) and now I'm attempting to optimise it so it runs as quickly and efficiently as possible.
One thought occurred to me after I looked over the Shifter example code supplied with the SDK (figuring out using the Iteration suites) - where is the best place to check out my parameters - Pre-render, or Smart Render?
At the moment I check out all except for the layers during the call to Smart Render. There are a lot of parameters too, potentially, and from these I populate a bunch of variables I later use to draw my various scopes.
The Shifter example checks out its parameters during Pre-render and populates a data structure, which gets sent to Smart Render via the extra data.
I'm assuming that Smart Render never gets called without a Pre-render, so is there any advantage (apart from not having to check in my parameters) to doing all this in Pre-render? One thing that springs to mind is that now I'm starting to make use of IterateGeneric() for multi-threading I need to populate a (big) data structure to pass as my refcon, and I could start building this data during pre-render and pass the handle to Smart Render in pre_render_data, as in the Shifter example. This might save a whole load of function variables at render time.
Thoughts?
Also, any other pro optimisation tips and hints gratefully received!
Thanks, Christian

I think the big bushy beard on my face suggests that I am indeed a MAN!
Now it's working as it should I think a rewrite is in order to optimise, and start putting things in their right place. Obviously I'm checking out my layers during prerender but that's all at the moment. However my main drawing code is currently just two nested for loops (for y and x), so single-threaded. I've moved one of the scopes to a row-based function called by iterage_generic(), and with it a quite large refcon structure to carry all the vital position, scale, etc., information I need to draw the scope properly. If I'm to get all this info for all the scopes into the refcon, then I might as well take the time to do it during pre-render (where possible).
> 1. if the inside of your iteration function looks like this:
PF_Err err = PF_Err_NONE;
AEGP_SuiteHandler suites(in_data->pica_basicP);
suites.someSuite()->someFunction();
I made this mistake very early on in development, and after figuring out it was the reason why the plugin ground AE to a halt, learned not to do it again!
> 3. if your plug-in does a whole lot of floating point math, then consider setting the compiler's floating point model from it's default "precise" to "fast".
My plugin actually does all of its internal work in 32-bit float. I figured it would be easier to write and maintain if I only had a single function for each part, rather than three. I can't see how to do this in XCode yet (Windows will come later).
> (and you do know about the optimization options in your compiler, right?)
Well, I've been looking into this, but any info you can share would be great. So far I've seen the following in XCode, which I can set for "release" mode:
"Debug Information Format" to nothing
"Strip Debug Symbols During Copy" to Yes
"Optimization Level" to Fastest, Aggressive Optimisation
But I'm sure there must be more...
Thanks, Christian

Similar Messages

  • Best practice for checking out a file

    Hello,
    What is the SAP best practice to check out a file? (DTR -> EDit or DTR -> Edit Exclusive?)
    What are pros and cons of checking out a file exclusively?
    Thanks
    MLS

    Thanks Pascal.
    Also, I think if a developer checks out exclusively, makes changes and leaves the company without checking in, the only way is to revert those files in which case all his changes will be gone.

  • More iphone tips--a great place to check out

    http://missingmanuals.com/davidpogues_favorite_iphonetricks.csp
    This has some nice shortcuts or tips you might not know about.

    Agreed! The punctuation trick is sweet - should quiet all those Blackberry-double-tap-spacebar-for-period fanatics.

  • I have a file checked out in a place I can't get to. I need it checked in. How!

    Thanks for your help. 

    Hi JJQuinn,  
    Thanks for your post.
    What’s the version of your TFS and VS?
    The appdev is your development server and build machine? You can log on that machine to check that user and check the file be checkout under which workspace.
    If you’re using VS 2013, open Source Control Explorer, right-click on that file and select Find>>Find by Status…, then you can view this file be checked out under which workspace.
    You can execute the tf undo command to undo that checked out file like below:
    tf undo $/teamprojectname/…/filename.xx 
    /workspace:workspacename  /collection:TeamProjectCollectionUrl
    https://msdn.microsoft.com/en-us/library/c72skhw4(v=vs.120).aspx 
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • I am getting pop ups on safari and firefox lately and am worried i may have malware or something now on my computer doing this. What is the best way to check this out for sure and remove it?

    I am getting pop ups on safari and firefox lately and am worried I may have malware or something now on my computer doing this. What is the best way to check this out for sure and remove it?

    Please review the options below to determine which method is best to remove the Adware installed on your computer.
    The Easy, safe, effective method:
    http://www.adwaremedic.com/index.php
    If you are comfortable doing manual file removals use the somewhat more difficult method:
    http://support.apple.com/en-us/HT203987
    Also read the articles below to be more prepared for the next time there is an issue on your computer.
    https://discussions.apple.com/docs/DOC-7471
    https://discussions.apple.com/docs/DOC-8071
    http://www.thesafemac.com/tech-support-scam-pop-ups/

  • Why can't I check out a project?

    I've got TFS 2013 Express installed on my desktop PC (an older HP Pavilion Elite desktop running Windows 8.1 Pro). Sometimes when I get into Visual Studio 2013, open up a solution and try to check out a project within the solution, with less than 100 files
    in it, TFS never finishes checking out the project/files.
    Why is that? What's going on and what can I do about it?
    Rod

    Hi Rod,
    It would be better to let us know the detailed scenario and reproduce steps. When you work with TFS, you can edit your source code by Visual Studio after connecting to the team project in TFS. And you can change the source files in source control explorer
    and it will be checked out automatically. 
    You can create a new workspace and then do a workspace mapping to get the source files to a new local path. And then try with the new workspace. If the issue persists, please elaborate more details with screenshots.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • I need an Apple SuperDrive 8X Part No. 661-4279 for my MacBook Pro.  Where is the best place to order one?

    I need an Apple SuperDrive 8X Part No. 661-4279 for my MacBook Pro.  Where is the best place to order one?

    Some sites to check out.
    http://www.powerbookmedic.com/Apple-SuperDrive-DVD-Burner-Drive-8x---Macbook-Pro -p-16916.html
    http://www.macpartsonline.com/661-4279-superdrive-8x-double-layer-pata-15inch-2- 2-2-4-2-6ghz-macbook-pro-a1226.html
    http://www.dvwarehouse.com/661-4279-DVD-R/CD-RW-SuperDrive-8x-Dual-Layer-PATA-fo r-MacBook--MacBook-Pro---NEW-p-37374.html
    http://www.welovemacs.com/6614091r.html

  • Best place in VOimpl java code to call a stored proc to populate results

    Hello all,
    Using JDev 11g, ADF BC and Trinidad.
    I am building an application that is primarily used for searching large amounts of data. We already have stored procedures on the database that perform the searches and dump the results into a holding table (together with a "search id"). I have easilly built a prototype of this application: my view object is simply "select a, b, c from results where search_id = :bv" - I have a service method in the AM that runs the stored procedure, obtains the search ID, binds it to the :bv in the VO and executes the VO's query - it's all working really nicely. Range paging is effective, the VO itself performs well, and I am able to control how long the stored proc runs via setting a timeout value.
    Now, I'd like to generalize this. My thinking is this:
    1). I'll add a custom property to my VO that is the SQL statement needed to call the stored procedure.
    2). I'll add some bind variables to the VO to represent all the query parameters that can be passed to the stored proc. I'll also use custom properties to indicate these are "fake" bvs, and not in the SQL query itself.
    3). The VO's SQL will remain simply "select a, b, c from results where search_id = :bv"
    4). I will (have already tested) override bindParametersForCollection so that the "fake" bind variables aren't bound into the SQL.
    Now, the question: I want to override some method in the VO's java code to call the stored procedure. The stored proc needs to be called before the actual query for the VO is run, and also before the method getQueryHitCount is called (so that the count is correct). What is the method that would be the "best" place to do this? My current thinking is that I would put the call in an over-ridden executeQueryForCollection call. As far as my analysis has gone, it seems to be always called before getQueryHitCount, but I have no way of knowing if this is completely safe.
    Any thoughts from the BC experts out there?
    Best regards,
    John

    John,
    from your description I understand that you essentially program the VO yourself. So I suggest that you read chapter 35.9 of the 'Fusion Developer’s Guide for Oracle Application Development Framework' (I guess you know where to find it). Since you still call the actual SQL not all of the chapter apply, but you get the idea how it works.
    And yes you analyzed the behavior correct. executeQueryForCollection() is allways called bevore getQueryHitCount().
    Timo

  • CVAPI_DOC_CHECKOUTVIEW - how to check´out files to a SAP directory

    Hello,
    I have an issue with understanding and providing the FM CVAPI_DOC_CHECKOUTVIEW to check out files from KPRO to a SAP directory.
    I use CV120_KPRO_CHECKOUT to checkout files to local PC and this runs fine, but not for checking out files to SAP directories. So I found the API.... FM.
    But I am confused about the data required to run the FM CVAPI_DOC_CHECKOUTVIEW . I tried several times but it does not work either for check out to clnt nor to SAP server.
    Parameters for DOKAR, DOKNR, DOKVR and DOKTL are clear to me. PF-CONTENT_PROVIDE is CLNT for PC check out and SRV for Server checkout. But what about the rest?
    I am not sure how to provide the tables and the fields PF_FTP_DEST / PF_HTTP_DEST / PF_HOSTNAME and the PS_API_CONTROL.
    Can anybody help me with the required import data.
    Best regards
    Dirk

    Hi Dirk.
    We are using bapi to get the document file (original)
    Look our usage of pf_http_dest and pf_ftp_dest.
    CALL FUNCTION 'BAPI_DOCUMENT_GETDETAIL2'
      EXPORTING
        documenttype       = vl_dokar
        documentnumber     = vl_doknr
        documentpart       = vl_doktl
        documentversion    = vl_dokvr
        getactivefiles     = 'X'
        getdocdescriptions = 'X'
        getdocfiles        = 'X'
      TABLES
        documentfiles      = t_document.
    READ TABLE t_document INTO wa_document INDEX 1.
    CALL FUNCTION 'BAPI_DOCUMENT_CHECKOUTVIEW2'
      EXPORTING
        documenttype    = vl_dokar
        documentnumber  = vl_doknr
        documentpart    = vl_doktl
        documentversion = vl_dokvr
        documentfile    = wa_document
        originalpath    = 'your SAP directory'
        pf_http_dest    = 'SAPHTTPA'
        pf_ftp_dest     = 'SAPFTPA'
    IMPORTING
        return          = wa_return
    TABLES
        documentfiles   = tl_files.
    Darley

  • Where is the best place to buy the new ipad? Please help

    I am ready to buy a new ipad.  There is no apple store in my town but I will be close to one in a couple of days.  My town has Best Buy, Target, and Walmart.  Assuming I can find what I want... in case I have issues with it, where is the best place to purchase from??  (as far as ease of return, etc). Please advise.

    Dah*veed ..... I do not disagree with what you said about the AppleCare+ protection plan as it does state on the website that proof of purchase is required - IF ... You purchase over the phone. Actually, I did not expect to be able to do this over the phone, but as I said I received the paperwork today via email.
    I copied this from the website and I'm typing this on my new iPad so it may come out a little distorted but you can read the sentence at the bottom that says it can be done over the phone with proof of purchase. I gave the rep my serial number, confirmed my address and CC details and the deal was done. I even called back later in the day to make absolutely certain that I did in fact purchase the AppleCare+ plan that has the two incidents of accidental damage included for a $49.00 charge. The rep did in fact confirm that I did buy the correct plan that I wanted and I am looking at the printed paperwork confirming the whole thing.
    Maybe I just got lucky!
    iPad - AppleCare+
    Every iPad comes with one year of hardware repair coverage and 90 days of telephone technical support. AppleCare+ for iPad gives you two years of repair coverage and technical support from the original purchase date of your iPad. And it adds coverage for up to two incidents of accidental damage due to handling of your iPad, each subject to a $49 service fee.1
    How to get AppleCare+
    You must buy AppleCare+ within 30 days of your iPad purchase.
    There are three ways to buy:
    From the Apple Online Store: When you order the new iPad or iPad 2, you’ll have the option to add AppleCare+ to your cart before you check out.
    At an Apple Retail Store (requires a Genius Bar appointment, inspection of the iPad, and proof of purchase).
    By calling 1-800-275-2273 (requires proof of purchase).
    Learn more

  • Re: Help! Cannot remove unavailable item in cart, can't check out!

    I am having the same problem. It's been an issue with the same unremovable item for over 2 months. The solution here did not work. The problem occurrs on every computer I use. I cannot make a best buy purchase using my account.

    Hello turfbag,
    Well, that’s not very nice of our website. I order things online all the time, but it would certainly complicate things for me if something was in my cart that wouldn’t just go away! I know I wouldn’t be happy with this, so I do want to see how I may help you with this.
    There are certainly things you can do that may help resolve this. Normally, I’d suggest these steps in the order listed:
    1)      Log out of your BestBuy.com account
    2)      Clear all cookies, cache, and history information from your browser
    3)      Add the item you’re wanting to purchase to your card (currently as a guest)
    4)      Go to the checkout page and login to your account as a returning customer
    5)      Attempt to remove the previously unavailable item if it’s still there.
    It sounds like you’ve already attempted this procedure and were unsuccessful though.  From here, there really isn’t much else we can do other than trying another browser or using our app using a smart device. If these options don’t work, we have three ways in which you may still place online orders with us.
    1)      Check out as a guest on www.BestBuy.com
    2)      Call us at 1-888-BestBuy to place orders on your behalf
    3)      Create a new online account using another email address you may have
    Best wishes,
    Alex|Social Media Specialist | Best Buy® Corporate
     Private Message

  • How do I checkin/unlock files that I checked out under a different computer name?

    My hard drive went bad. My IT department migrated me from windows 7 to windows 8 and also to a different user and computer name in a new domain. Now I cannot unlock files that were checked out on the old drive under the old domain user & computer.
    I tried running Visual Studio 2013 under the old user name (using Run as other user), but appears that the files are inaccessibly locked on the old and no longer existing computer name.
    John Mikesell

    Hi John,
    Based on your description, your TFS and current client machine in different domains.
    In this situation, you can contact your TFS administrator to make two-way trust between the two domains,  then add the current user account as a team member of your team project. After that, you can ask team project collection Administrators to
    unlock the file that your locked. Or ask the administrators to add your account to the group of "Project Collection Administrators". Then you can unlock the source files by yourseft after a workspace mapping on client machine. Check this
    page for more information about lock and unlock files or folders.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Change Default resources Assignment Owner in Project Professional, in the checked-out Enterprise Resource Pool?

    Hi,
    i'm not able to change the default Assignment Owner (massive) in the Checked-out Enterprise resource pool in Project Professional 2013.
    I've also unlocked the "Windows account edit" in the Register Editor.
    Do you know if is this possible or i have to change it for each resource one by one???
    Thanks
    Best regards 
    Daniele
    Daniele

    Hello Daniele,
    I think what you are seeing is by design behavior. Per below article you can set the Default Assignment owner in Project Web Access and it appears in various places in Project client.
    http://office.microsoft.com/en-in/project-help/default-assignment-owner-resource-field-HA010167482.aspx
    If you want to set the same default assignment owner for multiple resources then you can try bulk edit option in resource center.
    Hope this helps.
    Thank you,
    Kiran K.

  • Solution Landscape: why Request Check-out button could get greyed out ?

    Hi,
    We are on SolMan 7.0, SP15, including Ent. Edition add on.
    In Solution Landscape maintenance, the Business Processes added to the solution (either directly or those borrowed from a Project) cannot be checked out to a maintenance project becasue the Request button is greyed out.
    A simplistic SU53 check did not come up with any authorisation problems.
    I am not able to switch on trace and take that route to detect now.
    Can you please suggest as to what could be the possible reasons for this to be greyed out; also, have you used the 'Adjust to Original' button to bring latest changes in Project to Solution Landscape ?
    Best regards,
    Srini

    Hi Rutger,
    Thanks for your kind reply.
    There is one problem - I am not able to see in my SolMan the 'tickbox' you have mentioned about.
    The only sub-sections I see in the Tab there are:
    (1) Monitoring
    (2) Knowledge Warehouse Information
    (3) Copy Criteria for Document
    (4) Session Languages
    (5) Assigned Maintenace Project
    If it's feasible for you, can you please let me have a look at your screenshot as to how the sections look like. I wonder if there is any component missing to be installed.
    Best wishes and thanks for your time.
    Srini
    Hi Rutger,
    Thanks for your pointer again. I got a screenshot from a different friend (on another SolMan instance). Came to know of where these check boxes should occur.
    Later, I found them in my instance too - the browsing scroll bar was the culprit. One had to go to the very bottom, move the scroll to the right extreme and then move further down. Really a silly mistake.
    But, without your help, I wouldn't have know that there were such check boxes at the first place
    Cheers,
    Srini
    Edited by: Srinivasan Radhakrishnan on Sep 17, 2008 11:47 AM

  • Multiple people checked out a story at the same time

    Had a strange  incident today where two incopy users had story checked out at the same time. I wouldn't have believed it if I hadn't seen it for myself. I checked the links, they were going to the same place. One user lost his changes when both checked in the story. How could this happen? Looked like maybe the locked file was disappearing for some reason.

    Pretty much covered this in the ID forum.
    Bob

Maybe you are looking for

  • How to Change Default Title and Icon of Forms 5.0 Runtime

    Whenever i run Forms 5.0 runtime , it always shows 'Developer 2000 Forms Runtime for Windows 95/ NT'. If i set a title to the main window then also the above message preceeds my Title of Window. Is there any way to remove that ???? My Application is

  • Activate Profit Center Accounting with Splitter in SPL / New GL

    ...............New G/L go live date.....................Migration Point (after this cannot post back) ...............I<--old G/L-- >I ...............I..(using old G/L till Migration).........I I--I>--- ...............I................................

  • Help with Adobe Reader

    I have a Mac. I have Adobe. How do i install Adobe Reader. I have downloaded the installer. Apparently I don't have a password for Reader. Can someone help me?   Thx, TIM

  • Bridge CS5 not working properly

    Hi, I have been using Bridge for years, I have Bridge CS5 and all of a sudden I can't use the export to web/ pdf function. I also can't use the Tool>Photoshop>Image Processor. (It doesn't appear to exist anymore??!). What's going on? As far as I reme

  • Can i buy an upgrade from CS5 design prenium windows to CS6 design prenium Mac ?

    Hello, As i said in the title, i purchased Student Edition of CS5 Design Premium for student and i'd like to upgrade it to the same edition to CS6 for Mac. is it possible ? I don't find where i can do that in the adobe's website. I've bought it on it