JavaFX Framerate & Stage Size

Hello,
I am new to JavaFX and I am currently evaluating whether to port some Swing based applications. I really like the API. It is definitely fun to work with it! But unfortunately I noticed some performance issues which I would like to understand before starting with implementing real applications.
Question:
Why does the framerate drop if the stage size increases? I add nodes that stay in a rectangular region of the stage that does not change in size. The stage size increases. Unfortunately the framerate drops. It seems like there is some delay which increases if the stage size increases. This is a problem for applications running on big screens such as iMac 27″ (2880×2560). Sometimes I get framerates far below 60 fps. Users do notice that. But as I said, while changing the size I don't change the number of nodes! They are still in the same region as before. Dirty region optimization shoud prevent this behavior. Am I doing something wrong?
I created a benchmark that demonstrates that. Here are my benchmark results: http://mihosoft.eu/?p=280
Thanks for your help!
miho

miho,
Do you notice a difference in framerate when you have some of the Window sitting outside of the desktop screen? So lets say you have a good size window that has good FPS... now drag that window so that part of it sits outside of the desktop screen. do you notice a drop in FPS?
This is what I am noticing.
thanks
jose

Similar Messages

  • Edit stage size without effecting elements position.

    Question.  Can you change the size of your stage, say smaller than what you started with, so that when you move your elements to the new position of the stage the motion paths do get messed up because you moved everything?
    I have a "full" page layout that I would like to cut in half but the stage jumps to a "middle" point and when I try to move all my elements, some with motion paths, it increases the distance of the path and destroys it.  I don't see any way of locking the paths to move an element and I have 23 elements with paths to move so moving each would suck.
    I know Edge is basically in Beta 24, 7 because it's still not flushed out anywhere near where it could be.  If they just allowed you to adjust the stage size by locking a region kinda like page size in Photoshop or adjusting the page like in Illustrator with cropping.
    Any suggestions or help would be greatly appreciated.
    Thanks,
    Ryan.

    Hi Colin,
    Thanks for the fast reply.
    I guess I checked fullscreen when creating the project, however, when setting fullScreen to false (and uncommenting the still commented node?!) in de descriptor file I get the following compile error:
    Error occurred while packaging the application:
    /private/var/folders/gv/gv-j1H1UFJ4olvFpGwVTVk+++TI/-Tmp-/AOT1309729499262/Box2DiPad-app.x ml(109): error 103: application.initialWindow.fullScreen is an unexpected element/attribute
    User error somewhat or bug?
    ... Rats! In case anyone messes up like me: The fullscreen node gets rewritten all the way at the bottom of the initialWindow section. So it needs to be changed there....
    Is there anyone who can shed some light on AIR 2.7 update progress?
    Thanks,
    Manno

  • Changing Stage size at runtime

    I have been poking around and not finding any info on this.
    What I want to do is change the height of the STAGE (not a
    MovieClip) based
    on which view I'm showing the customer at a particular time.
    For instance...
    I may have a thumbnail and a detail view for a product. I
    don't need a lot
    of screen real estate to show the thumbnail view, but I'd
    like to make the
    swf taller if the user switches to the detail view.
    I don't simply want to make the swf taller by default because
    I'll have a
    ton of unused whitespace in thumbnail view, which will look
    stupid.
    I shouldn't have a problem with the JavaScript to change the
    height
    properties in the HTML tags for the Flash object, but not
    really sure if/how
    to do the other part in Flash. Everything I've seen so far
    has been
    read-only properties.
    Thanks,
    Chris.

    did you change stage size?
    how can you do this without javascript?
    "Christopher Hayes" <[email protected]> escreveu
    na mensagem
    news:ee4csi$ent$[email protected]..
    >I have been poking around and not finding any info on
    this.
    >
    > What I want to do is change the height of the STAGE (not
    a MovieClip)
    > based on which view I'm showing the customer at a
    particular time.
    >
    > For instance...
    >
    > I may have a thumbnail and a detail view for a product.
    I don't need a lot
    > of screen real estate to show the thumbnail view, but
    I'd like to make the
    > swf taller if the user switches to the detail view.
    >
    > I don't simply want to make the swf taller by default
    because I'll have a
    > ton of unused whitespace in thumbnail view, which will
    look stupid.
    >
    > I shouldn't have a problem with the JavaScript to change
    the height
    > properties in the HTML tags for the Flash object, but
    not really sure
    > if/how to do the other part in Flash. Everything I've
    seen so far has
    > been read-only properties.
    >
    > Thanks,
    >
    > Chris.
    >
    >
    >

  • SCN document: 'Insert Image' greyed out at a certain stage/size

    I noticed  a similar issue likeTammy has reported in discussion/thread .Cannot insert or upload an image
    After having inserted text and several images to a draft document, the 'Insert Image' icon became greyed out at a certain stage/size.
    I did some tests following document Solution for Error: Cannot Insert Images on SCN Content, but the the behavior remained the same. Only after having deleted the last inserted image in the document > Save Draft > Edit again the 'Insert Image' icon was not greyed out anymore which is argueing for a size restriction.
    The same html coding as in the document put into a blog does not grey out the ‘Insert Image’ icon. But I found out that after clicking on the ‘Insert Image’ icon > ‘From your Computer’  tab ‘Browse’ is greyed out. Strange and argueing against a size limit is, when I choose ‘Uploaded Images’ I can select images and still  insert them into the blog.
    Does someone have similar experiences / can assist.
    Thank you, Barbara

    We have a recent discussion in SCN support.
    He has same problem. Have a look into the discussion Issue with 'Insert Image' button while creating document in SCN
    I suggest to split you document into two part as part 1 and part 2.

  • Possibel to give stage size as parameter in html ?

    I know Stage size width and length are read only, but i think
    to remember that it was possible to change it the moment you call
    it from html ?
    No ?

    Just to add my 2 pence to what was already said..
    One of the rules for Robust Software is not to rely on implicit data type conversions to make things work. And that is what you are doing.
    The parameter is a date type. You pass a string value. Oracle now attempts to implicitly convert that string to a date.
    Sometimes it will work. Sometimes not. Why? Because it depends on things like the NLS settings of that particular sessions that governs implicit data conversions. Like what format must a string be in to be successfully converted into a date?
    And relying on this, is bloody dangerous. Consider the string '12/01/2008'. One session has a NLS date format of 'dd/mm/yyyy' and the other the format 'mm/dd/yyyy'.
    The result will be a successfully converted date.. but the WRONG date. And slowly and silently (no errors) your application starts to corrupt data in the database, because your code relies on implicit data type conversions.
    General rule: Implicit data type conversions are EVIL! Do not use!!

  • Set stage size?

    Is there a way to have the stage size change during this one
    section that is vertically longer? I'd prefer not to have the html
    scrollbar through the whole site, but I need overflow to show for
    this one page of the Flash website (website is one long timeline
    with labeled frames for each of the pages)
    Thanks to all the smarties!

    in a manner of speaking you are correct jp - you *can* use
    the onResize event of the Stage class to adjust the size of the
    stage to the browser window or table, you *can* also 'scale' the
    content of the stage through publishing and code, on-the-fly
    durring runtime in a similar manner. however that is not what the
    halo's problem relates to, he wants to change the stage only during
    one portion of the site navigation, so unless the entire site was
    built dynamically, and any other page content was present, it would
    be problematic to scale the contents 'all' to the height of the MC
    in question. a better solution for the issue as he describes it is
    to use a scrollpane window, as i'd mentioned.

  • Stage size for a Flash website?

    I am taking a beginners Flash course and our final project is to create a movie/website in Flash. 100% Flash based. In a previous course, I made an HTML site. For this project, I am recreating that website in Flash. But what should the stage size be? That is where I am stuck. I don't know what a normal Flash site size should be to fit the screen like a normal HTML site. Can anyone help me here with this please? I already know to havethe dimentions set to 100% and 100%. But for some reason, when I use Control > Test movie, it never seems to fit right. It's either crunched together to much or spread out to far to where the header and footer are partially off the screen. I've seen posts on the web from years ago that said 950x550 is the size needed. Is that still the case? Because it just doesn't look right. With HTML the page height would adjust to the content and it would automatically scroll if needed. But Flash doesn't seem to do that. It seems that you are stuck with 1 size and you have to work around it. But I don't know what size that is supposed to be. Sorry for the long rant. Just getting really frustrated. I'm using Flash CS4 if that helps any as well.

    if you want to use 100%x100% and not have your display objects resize, set your stage's scaleMode to noscale.  check the stage properties for your actionscript version for exactly how to do that.

  • Maximum Stage Size Possible in FP 10

    Does anyone know what the max size is in FP 10 for the stage?
    When I scale a swf larger than 4080 I get a black line at the
    bottom below my content. Can anyone reproduce this?

    It is true that the Flash IDE restricts stage size to 2880.
    My question is really how large does the flash player support
    scaling content?
    If I have a swf that I created in the IDE at 100x100 and then
    I open it in the player and tell the player to scale to 5000x5000
    it appears that FP 10 doesn't complain. FP 9 and earlier did
    complain by not rendering content past a certain pixel boundry.
    Flex seems to have an issue if you have a gradient set on the
    mx:application component (I haven't tested others yet), which is
    probably the issue with the 4096 single bitmap boundary.
    The crux of the matter is that I am getting artifacts on the
    screen when I scale the player to a very large size that has a flex
    swf loaded. The artifacts are not part of any content that I load.
    So either they are caused by the flex framework components or the
    flash player itself.

  • Flash CC Brush Tool abruptly stops drawing when stage size is small

    When using the Brush Tool, I'm having an issue that the stroke I'm drawing will abrupty cut off at a certain point on the screen (roughly halfway down the monitor, it doesn't relate to the canvas position or any coordinates).  This seems to happen when I have the Stage size set to a smaller size (64 x 64 pixels for example).  I've been able to reproduce the same behavior on multiple files, and on both a Windows 8.1 machine and a Windows 7 machine, both using the up-to-date version of Flash CC.  Both machines are dual monitor, I'm not sure if that plays a factor in this.
    To reproduce: 
    1.  Create a new FLA in Flash CC and set the stage size to 64 x 64 pixels.
    2.  Use the Brush Tool and attempt to draw from the top to the bottom of the screen (zoom level and position on the canvas does not matter, as long as your cursor is going from near the top of your monitor to the bottom of your monitor).
    3.  The stroke will abruptly cut off mid-drawing at a certain point on the screen, roughly half-way down.  You can continue to draw and move upwards and it will reappear when it crosses this barrier again.
    This does not happen if the stage size is set to something larger (640 x 480 for example).  This also does happen in Flash CS5 or CS6, and have only noticed this happening in Flash CC.
    This is happening using the mouse for drawing, and also happened when I tested it on a different PC with a Wacom tablet attached.
    Is this happening for others as well, and is there any fix for this behavior?  (aside from always using a large stage size)

    Hi All,
    Just want to update you all that the latest Flash CC 2014 release(14.0.0.110) has the fix for this drawing issue.
    This release also features
    * New and improved Motion Editor
    * SVG export
    * WebGL for animation
    * Variable Width Tool
    * Tweening for variable-width strokes
    * Object-level Undo
    * Export as Projector
    * HTML5 extension support
    and much more...
    To know more about what's new and exciting in Flash CC 2014, please visit
    Flash CC 2014 Overview : Animation software | Download free Flash Professional CC trial
    Flash CC 2014 Blog Post :  http://blogs.adobe.com/flashpro/2014/06/18/flashprofessionalcc2014/
    Thanks!
    Mohan

  • Stage Size Issues in Director 11

    Is there a maximum stage size in Director 11? I have set my
    stage size to be 6144 X 768, in order to span 6 monitors for a
    theatre project. I have used 3 monitors before, with no problem in
    early versions of Director. Everything works fine while working on
    the movie, but when i quit Director, I am unable to open director
    again, unless I delete all the preferences and start with a single
    monitor stage size.

    IIRC there is a legacy bitmap dimension limitation of around
    4096, so I
    wouldn't be surprised if the stage also has something
    similar.
    You could develop separate windows (MIAW files) and display
    them at
    particular locations/dimensions

  • One Size Fits All? (Stage size for best display on iOS and Android)

    I'm beating my head against the wall trying to find the one proper stage size that will accommodate all iOS devices and all Android devices adequately.
    I've been following Colin Holgate's informative posts and am using the   stage.scaleMode = StageScaleMode.NO_BORDER;  approach.
    However, I'm not sure what I should be setting the dimensions of my stage to, as the suggestions I found of Colin's seem to be prior to the release of iPhone 5 and the iPad retina display.
    Can anyone recommend a stage size that would work best in trying to accommodate the wide variety of devices out there?
    Many thanks in advance!
    Mike

    Maybe I'm missing something here, but isn't this an easier way to place a button in the top right (assuming center point is in top left of button)?
    button.x = stage.stageWidth - button.width;
    button.y = 0;
    edit: I suppose that doesn't apply to show_all. I'm used to using
    stage.scaleMode = StageScaleMode.NO_SCALE;
    stage.align = StageAlign.TOP_LEFT;
    We've done this with banners at the top and bottom. If you design a banner for a specific aspect ratio, you can do something like
    banner.width = stage.stageWidth;
    banner.scaleY = banner.scaleX;
    This causes the banner to fill the width of the screen and change height proportionately. If you want to have more control over the elements in the banner, something like
    banner.background.width = stage.stageWidth;
    var newHeight:int = stage.stageHeight / 8;
    banner.background.height = stage.stageHeight / 8;
    banner.buttonBack.height = newHeight;
    banner.buttonBack.scaleX = banner.buttonBack.scaleY;
    banner.buttonBack.x = banner.buttonBack.y = 0;
    banner.title.height = newHeight / 2;
    banner.title.scaleX = banner.title.scaleY;
    banner.title.x = banner.buttonBack.x + banner.buttonBack.width * 1.2;
    banner.title.y = newHeight / 2;
    etc
    This might not be what you're looking for at all, but I find it works well for resizing.
    When asked to convert a fixed-size iPad app to one that dynamically resized for Android devices, we found it infeasible to completely recode the app in the time required, so we mixed dynamic resizing like above with throwing lots of objects into an empty MovieClip and scaling the MovieClip to fit the current stage size. This didn't hurt performance much, even when running graphics designed for the iPad's 2048*1536 retina display on much smaller screens.

  • Edge Animate Stage size in Dreamweaver fluid grid

    I have developed an animation and have almost everything scaling and resizing acceptably in a Dreamwaevr template...except the stage.
    In Edge animate I have a stage size that is 1212px x 400px. When the animation is viewed on a PC all the dimensions are fine, but when viewed in tablet or mobile phone, the vertical height remains at 400px... which leaves an enormous gap between the bottom of the animation and the next div.
    I have set the stage dimensions to %, and have turned on the "link width & height" switch, and the stage still does not respond in vertical height.
    How can I get the stage to respond vertically with a fluid grid layout in Dreamweaver?
    I also note that every time I open up a previously saved Edge Animate file, the stage automatically opens the file at 550x400px, instead of the correct dimension for that animation, so that I have to then reset the stage size to what is correct for that animation... ..any reason this may be so?
    Thanks,
    Glen.

    Thanks for your reply. You're right about most people not resizing their viewport during a session, but unfortunately the problem exists whether the screen is being resized or not. Refreshing the screen doesn't solve the problem.
    The width of the div adjusts to the width of the screen as expected and the Edge Animate composition inside it does too, but the height of the div doesn't adjust. As the animation gets smaller to fit the width, the height of the div that contains it remains the same, leaving empty space at the bottom of the div. What is needed is for the div to scale to fit the page width proportionally. Instead, only the width is adjusting.
    So I guess I need to know if there's either a way to force the div to scale proportionally or a way to tell it to adjust to the animation that it contains.

  • JQuery width() height() always get stage size instead of div size?

    I have an Edge project with nested Symbols. In a 3rd level symbol instance, I log it's real size like this.
    var stageWidth = $(window).width();
    var w = sym.getSymbolElement().width();
    console.log(w,stageWidth);
    When it's in the creationComplete event handler, it shows the right size.
    When it's in the mousemove event handler, it always shows that div size == stage size.
    I have tried hours not to find the solution.
    What is this problem?

    Trying to use logic to locate the problem ( at least trying...)
    - if the code is placed in 3rd level, maybe the stageWidth is calculating something else than stage size?
    - if the code is placed in stage maybe the w is not targeting the right element?
    - Does it mean that during the mouseMove the creation has not completed yet? what could be the explanation for the contradictory results here?
    - maybe during mouseMove you are performing some sort of transform or modification on the element, and it makes the width equal to stage size? something to manipulate the w value after its creation?
    - maybe w is not reading the size you are actually interested to read ( like the value of w is equal to stage in reality and this is what shown in mouseMove but interestingly in creationComplete you get unequality. Assuming the  reverse scenario, suspecting the creationComplete results instead)
    - what happens if you replace mousemove to a click event?
    hope it helps, i guess this is how sherlock holmes would try to help you. not enough knowledge on creationComplete to find the flaw here...

  • If the stage size is set to 640x480 then...

    This may seem like a dumb question, but if I set the stage to
    640x480, then shouldn't the testing of the flash piece be displayed
    at that size as well? Its almost a different size every time I test
    the file (ctrl+enter).
    What gives?
    Yes I have some clips that are larger in width than the stage
    size but should that cause the player to be opened larger than the
    specified stage size?
    Thanks for the input.

    Never heard of this problem before - do you have your prefs
    set to display your tested movie in tabs?
    Chris Georgenes
    Adobe Community Expert
    www.mudbubble.com
    www.keyframer.com
    www.howtocheatinflash.com
    ooba wrote:
    > This may seem like a dumb question, but if I set the
    stage to 640x480, then
    > shouldn't the testing of the flash piece be displayed at
    that size as well? Its
    > almost a different size every time I test the file
    (ctrl+enter).
    >
    > What gives?
    > Yes I have some clips that are larger in width than the
    stage size but should
    > that cause the player to be opened larger than the
    specified stage size?
    >
    > Thanks for the input.
    >

  • Stage size versus imported file size

    I am new to the flash universe ... I am running Flash CS3 Pro on a Mac OSX 10.5.8
    Why is the stage size larger or file size always smaller when I import a file into Flash.
    I create a new project (Action Script 3.0), change the Stage size to 125 px x 162 px. Then import jpg images at that same pixel size, but they never fill the entire stage.
    Any help would be great, thanks.
    Greg
    SOCS MAG

    When you alter (reduce) an image's size in Flash it can display the wavy lines.  What you might try to overcome that is to right click the image in the library, select Properties, and in the image properties panel select the option to allow smoothing.
    As far as what is going on with Phtoshop not creating the images to the dimensions you specify, you may need to check the manual.  I have never had a problem, though I never really used Photoshop much.  Try using Fireworks if you have it and see how it fairs.

Maybe you are looking for

  • Spell check on abap fields

    Hi Friends I Tried Below Link https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/library/technologies/ms%20word-like%20spell%20checker%20for%20sap%20gui%20fields But everytime it is raising exception 'Control Error' In belo

  • Boot camp missing in leopard upgrade

    Hi! I just did an upgrade to leopard but I can see boot camp,I don't know if it missing or is just not compatible with power book G4, any help will be appreciate it.

  • Buying a New iPad with 3G?

    Ok so, I'm going to be putting in some overtime this week and next, and I'll be picking myself up an iPad with my next paycheck! I know I'm going to get the 64 GB and getting 3G capable as well, although I'm not so sure about the service. The reason

  • EISA Recovery Partition

    Hi Guys, Upgraded my T60 HDD from 60GB to 320GB. I backed up a copy of the preload partition and the recovery partition via Acronis True Image. I then formatted the 320GB HDD to  3 sections, SYSTEM, DATA and left about 6GB for the recovery partition.

  • Purchases with Apple ID

    Can you purchase from, example, a clothes store app using your Apple ID & so the money is debited from the card associated with that; as opposed to using PayPal or punching in your card details every time?