Possibility to pause drawing of a scene or group of nodes temporarily

Is there any way to temporarily pause the javafx runtime drawing operations?
The issue I'm having is that I have a sort of physics simulation running with tens of different physical objects. The objects have their x and y co-ordinates
bound to circles that are used for visualization.
Now, while I'm doing the physics calculations inside Keyframe, it seems that for each location update of the objects, the screen gets a refresh and this grinds the whole simulation to snail speed.
So if there would be a way to disable the drawing temporarily, maybe the performance would be better?
Like this:
disableDrawing()
updateCoordinates()
enableDrawing()

After a quick look, I didn't see anything in the API that seems to do exactly what you are asking (I may have missed it), but I can think of a few ideas that might help:
1. The most obvious solution is to just write your own listener, or update trigger, instead of binding.
2. Are you able to drive the physics simulation yourself? If so, I would just step the physics simulation multiple times for each view keyframe, or sync the number of steps with what can actually be handled by the view (javafx). After all, animation doesn't normally exceed 30 fps, so binding the view to a model that is updated say, 90 times a second, is a bit excessive.

Similar Messages

  • Is it possible to pause a video clip?

    Hi,
    Could anybody tell me if it possible to pause a video clip for a few frames and then resume playing later in the project?
    I guess I could chop the video clip into several discrete shorter clips and create some static freezeframes, and then play them all one after the other to crate the same effect.
    But that sounds clumsy so I wondered if there is a way to pause/resume a video clip within a project.
    Thanks.
    Meme.

    Many thanks for the pointers. I excitedly booted-up Motion to explore further...
    ... but I couldn't find anything called Timing remap or re-timing etc. Then it dawned on me that I should have specified that I'm still using Motion 2, and I guess those features are only available in Motion 3?
    However, armed with the new phrase 'Timing Remap', I dived back into Google and came up with this article:
    http://www.kenstone.net/fcphomepage/speed_changesmotion.html
    This explains how to use the Scrub filter (also available in Motion 2) to control the playback of video clips relative to the project.
    Its a bit fiddly, but I'm comfortable with basic arithmetic, so I can certainly use it to achieve the effect I want (basicaly I need a video clip to pause and then resume a few times throughout a project).
    So thanks again for the feedback. It really did help.

  • Is it possible to add/remove a person from a group using workflow?

    Hi All,
    Is it possible to add/remove a person from a group using workflow?

    What version of SharePoint are you using?
    There is CodePlex project that adds additional work flow steps that would help you out. These include
    Create Site
    Create Group 
    Add users to group
    The link is http://ilovesharepoint.codeplex.com/releases/view/89201
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • Drawing a rectangle around a group of components

    I want to draw a rectangle around a group of rectangular adjacent components that are in a Canvas.  I can't seem to find the right component to do this, or I am just not doing it properly.  I tried using a Canvas inside the Canvas with the inner borders set and adding the components to the inner Canvas and placing the inner Canvas at the location of the components it now contains, but it doesn't show up.  I also tried a transparent Canvas with backgroundAlpha set to 0.  Canvas is probably not the proper component to do this with.  Is there an easier way?

    I want to draw a rectangle around a group of rectangular adjacent components that are in a Canvas.  I can't seem to find the right component to do this, or I am just not doing it properly.  I tried using a Canvas inside the Canvas with the inner borders set and adding the components to the inner Canvas and placing the inner Canvas at the location of the components it now contains, but it doesn't show up.  I also tried a transparent Canvas with backgroundAlpha set to 0.  Canvas is probably not the proper component to do this with.  Is there an easier way?

  • Is it possible to pause a for loop?

    Hi all!
    I wonder if it's possible in anyway, without using any
    timelines, to "pause" a for loop.for a couple of second if some
    statement returns true during the loop?
    I.e. like this sketch up of a code example:
    Thanks for any help :)

    there is no way to pause or slow a for-loop or while-loop.
    you would have to code for breaks in your for-loop(s) or use
    setInterval() or an onEnterFrame loop to control the loops
    execution after it starts.

  • Possible Bug in Draw 1-Bit Pixmap(6_1).vi

    I have been observing this bug in Draw 1-Bit Pixmap(6-1).vi (part of picture.llb) in many LabView versions. Every time I install new LabView version or update an existing one, the bug reappears. Please, fix it once and for all. The array "Color Table" is not wired to Draw 1-Bit Pixmap.vi. It should be wired. I have attached the screen snapshot showing the bug and the comments. In your LabView version, you can just open Draw 1-Bit Pixmap(6-1).vi, wire "Color Table" and save this vi back into its library.
    Attachments:
    Bug_Draw_1-Bit_Pixmap(6_1)-vi.jpg ‏239 KB

    You would probably be much better off breaking that VI and replacing it as needed with a non-deprecated version, something like Draw Unflattened Pixmap.

  • Is it possible to pause uploading to iCloud photo library in iOS?

    When uploading photos to iCloud photo library from OS X, there is an option to pause the upload.
    This is useful to give your internet connection some respite (e.g. during periods where traffic management policies apply).
    I can't find such an option in iOS. Am I missing something?

    You can try using a JavaScript disabling extension. This may disable more than you want it to though.

  • Is it possible to pause a contoured motion?

    I'm using the NI-73xx palette to construct a contoured pattern. Everything works fine, but it won't be practical until I can get it to pause and resume exactly where it left off. I tried using the velocity override VI but couldn't get it to work. I think it's because contoured motion calculates the velocity for you, so you can't change it even if you tried to set it. Any ideas? Thanks!
    Attachments:
    WrapperControl.vi ‏108 KB

    I can't think of a way to simply pause any moves in the NI Motion API, but I would recommend looking into doing what I described above. Essentially, if a move gets stopped, programmatically update the buffer going to the contoured move based on the current stopped position. This will generate smooth motion while retaining the desired travel path. Besides a contoured move, there are no other options for "continuous" motion; the other move types are used as finite moves and trajectories.
    Karl G.
    Applications Engineer
    ni.com/support

  • Is it possible to pause my iPod update?

    All other downloads in iTunes are able to be paused and then resumed later, but I noticed that the iPod software download just has a 'x' instead of a pause symbol. The download is absolutely huge (650mb) and I have a slow internet connection so it says that it's going to take 14 hours... I've tried to download it multiple times but I am unable to close my laptop or let it go to sleep (I have caffeine turned on to prevent that), not to mention our internet is unreliable out here in regional Australia and it drops out at least once a day...
    Is there anyway to either pause the download and be able to resume it later, or get the update from another source (at my nearest Apple store, for example...)?  The iPad update is even bigger (it says it will take 3 days...) so I'm kind of desperate here. If there's no way to get around this lack of pause button, I will probably have to give up on getting the iOS updates...

    Try downloading the update file directly and then installing it.
    Get it here:
    http://www.felixbruns.de/iPod/firmware/
    Manually install it by holding your "Option" key down when clicking on the "Restore" button in iTunes and select the firmware file you downloaded.
    download the firmware for your iDevice. Manually install it by holding your "Option" key down when clicking on the "Restore" button in iTunes and select the firmware file you downloaded.

  • The update of iPod touch needs to be continuous? is it possible to pause it in between the download?

    i have been trying to update my iPod. its around 750 MB. its unabe to download as a whole. it gets stuck in between. also, it shows an estimated time f 7hours. is there any other way to update it?

    Try the manual update/restore specified here:
    iDevice Troubleshooting 101 :: iPhone, iPad, iPod touch

  • Is it possible to filter the data in a rule group ?

    Hi !
    I'm using 3 rule groups in a sales transformation to differentiate commands, bills, and deliveries.
    I would like to know if it is possible to filter for each rule group the data by BWVORG for example ?
    Thx in advance .
    Guillaume

    As per my understanding filter at rule group is not possible.
    You can use the same at the start routine.

  • Is is possible to run aggregate queries (cf SQL's "group by") on a CQ5 repository?

    I am trying to produce a report of how many images were added to our crx repository (under cq 5.3) in the last year, by the directory to which they were added.
    In SQL I'd do something like
       SELECT COUNT(*) FROM image WHERE image.date >= '2012-01-01' GROUP BY image.directory
    However, CQ5's query builder seems to only allow selection of result items, no aggregate information like counts / "group by" - or if it does support that, I can't find documentation on how to use it.
    Is this possible, and if so how? If not, is there another way of extracting this information? (I could write a script to submit a separate query for each directory and just return the number of results for each one, but that seems a bit laborious for what is a fairly straightforward requirement.) Apologies if I'm missing something obvious!
    Thanks,
    Nick

    There is no count(*) or group by selector in JCR SQL [1], XPath [2] or
    JCR-SQL2/AQM [3].

  • Is it possible to add variable defined as xmltype to an xmldom node?

    Hi,
    I'm trying to produce a complex XML document that doesn't lend itself well to using SQL XML functions (xmlagg, xmlelement, etc.) because various disparate data needs to be pulled together via seperate queries and then stuck into the final document in the correct spots.
    So I've resorted to using the convoluted pl/sql xmldom functions. What I'm wondering though is if it is possible to take data in an xmltype variable and somehow append it as a node within my xml document? Something as in the following pseudo code:
    begin
    doc := xmldom.newDOMDocument;
    main_node := xmldom.makeNode (doc);
    select xmlelement("Address",...) -- more xmlelements containing related address info (street, city, etc.)
    into l_address
    from ...;
    new_node := xmldom.appendChild (main_node, xmldom.makeNode (l_address));
    end;
    If possible, this would save me a tremendous amount of time from having to code every element and attributes via the xmldom functions.
    Thanks,
    Alan

    I've done the same scenario you are describing, shove XML defined in an XMLType into a DOMDocument. I munged the code to hide system specific references so the code works, just not as pasted here. The document is being built in o_response_doc and goes after the node previously built in l_rsp_msg_nd. The input is l_xmltype. May be a better way but I never found one and came up with this based on the Oracle documentation and trial and error.
        -- Convert the XMLType to a DOMDocument so we can extract the needed node
        --  and insert it into the response DOMDocument
        l_temp_domdoc := dbms_xmldom.newdomdocument(l_xmltype);
        l_inq_nodelist := dbms_xmldom.getelementsbytagname(l_temp_domdoc,
                                                           'DesiredXMLTypeNodeName');
        l_inq_nl_len := xmldom.getlength(l_inq_nodelist);
        IF l_inq_nl_len > 0 THEN
           -- Take the node above and adopt it into the response document
           l_temp2_nd := dbms_xmldom.importNode(o_response_doc,
                                                dbms_xmldom.item(l_inq_nodelist, 0),
                                                TRUE);
           -- Remove the a: namespace that was autoadded.  (this was defined in the l_xmltype XML)
           dbms_xmldom.removeattribute(dbms_xmldom.makeelement(l_temp2_nd),
                                       <ns_pfx>,
                                       <ns_uri>);
           -- Put the node in the correct position in the response document                                          
           l_temp2_nd := xdb.dbms_xmldom.appendChild(l_rsp_msg_nd, l_temp2_nd);
        END IF;
        dbms_xmldom.freeDocument(l_temp_domdoc);

  • Is it possible to assign different company code employees(country grouping also different) under same Organizational Unit?

    Hi SAP Experts,
    In OM side, Org Unit is linked to company code "GB**" cost center, when we tried to assign new cost center(company code is GB**), system throws error "Company Code changes involves Invalid change of country". I know when we try to assign cost center, belongs to another country company code, this error comes. I checked and found that employees under OU belong to 2 different countries.Few of the employees belong to GB** company code while other employees belong to FI** company code.
    Is it possible to assign different company code employees(different country code) to the same OU? if yes, how can we do that?
    Please reply soon
    BR,
    RG

    Hi RG
    "Is it possible to assign different company code employees(different country code) to the same OU? if yes, how can we do that?"
    Yes it is possible to assign by creating sub org unit and then assigning cost center based on the company code (and country code)
    When the child org unit is created under the Parent org unit - maintain the Account assignment details - cost center details based on the company code of other countries i.e Finland and any positions created it will be under Finland and that way you can choose different countries.
    Example :
    Root Org unit : XYZ / OU
    Sub Org units : GB  / Finland / Italy / NL   etc with respective cost centers
    Sub Org units or positions: GB_HR / GB_Sales etc which will default the cost center from the GB org unit.
    In our current clients we have more than 5 + countries under the Root Org unit and then sub org units as each country which are further divided and have respective cost centers assigned.
    best wishes
    V

  • Is it possible for 1 record to be in multiple groups?

    for example:
    i have a record that contains a field called "group"
    and it contains " 1 ; 2 ; 3"
    and i have groups 1-10, so this record should go into groups 1-3.
    but i can't find a way to do this, because once it goes into group 1, it is taken out of circulation and so it won't show up in groups 2 and 3 anymore.
    thanks!

    Jason Long wrote:
    To test it, just run this... (it will run against any instance of SQL Server)
    >
    > IF object_id('tempdb..#Values') IS NOT NULL
    > BEGIN
    >    DROP TABLE #Values
    > END
    > CREATE TABLE #Values (ValueName VarChar(20), Groups VarChar(20))
    >
    > INSERT INTO #Values (ValueName, Groups) Values('George', ' 1 ; 2 ; 3')
    > INSERT INTO #Values (ValueName, Groups) Values('Bill', ' 2 ; 4 ; 6')
    > INSERT INTO #Values (ValueName, Groups) Values('Marry', ' 5 ; 7 ; 9')
    > INSERT INTO #Values (ValueName, Groups) Values('Tony', ' 8 ; 9 ; 10')
    > INSERT INTO #Values (ValueName, Groups) Values('Shephanie', ' 1 ; 5 ; 10')
    > INSERT INTO #Values (ValueName, Groups) Values('Amanda', ' 4 ; 6 ; 8')
    >
    > SELECT ValueName, 1 AS "Group" FROM #Values WHERE Groups Like '% 1 %' UNION
    > SELECT ValueName, 2 AS "Group" FROM #Values WHERE Groups Like '%2%' UNION
    > SELECT ValueName, 3 AS "Group" FROM #Values WHERE Groups Like '%3%' UNION
    > SELECT ValueName, 4 AS "Group" FROM #Values WHERE Groups Like '%4%' UNION
    > SELECT ValueName, 5 AS "Group" FROM #Values WHERE Groups Like '%5%' UNION
    > SELECT ValueName, 6 AS "Group" FROM #Values WHERE Groups Like '%6%' UNION
    > SELECT ValueName, 7 AS "Group" FROM #Values WHERE Groups Like '%7%' UNION
    > SELECT ValueName, 8 AS "Group" FROM #Values WHERE Groups Like '%8%' UNION
    > SELECT ValueName, 9 AS "Group" FROM #Values WHERE Groups Like '%9%' UNION
    > SELECT ValueName, 10 AS "Group" FROM #Values WHERE Groups Like '%10%'
    >
    Hi, can I use the above within Crystal Reports?  I have the following fields in one table
    Customer Number
    Service Types
    A customer can have more than one service e.g. service 1 plus service 2 plus service 3
    Question:  How do I group similar service "bundles"?  E.g. How many have service 1 and service 2?  How many have service 1 and service 3? and so on so forth.
    P.S  By the way, here is the result of your SQL query above:
    Amanda     4
    Amanda     6
    Amanda     8
    Bill     2
    Bill     4
    Bill     6
    George     1
    George     2
    George     3
    Marry     5
    Marry     7
    Marry     9
    Shephanie     1
    Shephanie     5
    Shephanie     10
    Tony     8
    Tony     9
    Tony     10

Maybe you are looking for

  • Transferring iTunes music from Mac to PC?

    My mom and I gave my sister a new iPod nano to my sister for a gift. The iPod will not mount on her iMac G3 (10.3.9) where all of her music is but it will mount on her PC running Windows XP. Both computers have firewire. Is it possible to hook them t

  • Working with "Replace Here" background

    hello - I just got Motion2, but I am already needing it to finish a video project. I haven't had time to locate the answer to my issue on the manual, so I ask anyone on this board to help. I am trying to use a motion2 template for a FCP video project

  • Nokia e72 battery draining problem

    Ive been having this problem for over 3 months now. It all started one day when I normally charged my phone and when i took it off, it was extremely hot. After that, whenever i fully charge the phone, it would barely stay on for 15 minutes. I do not

  • In bound Que error

    Dear Friends, when I am doing the CFM2, the following error has occured System:    QC1CLNT421    User:  ALEREMOTE 06.04.2010 20:16:58 Function/Q/SAPAPO/CIF_BATCH_INBOUND Text:        Product for external product number 00008014400120 But i checked in

  • Plugging iphone into PC causes keyboard delay in online game

    I keep a charging cable always attached to my PC for convenience.  Recently this failed so I bought a 2m replacement rather than 1m, from apple store. I play starcraft 2 for fun, and I have noticed that whenever the iphone is plugged in (iphone 6), i