problem with PathTransition causing flickering of its Node
Jose Martinez
jmartine_1026 at yahoo.com
Fri Jun 1 21:51:26 PDT 2012
After testing thoroughly I have not seen flickering return. Also, while using the prism options (-Dprism.dirtyopts=false -Dprism.verbose=true) I do not see the ghost images occurring on the projectiles.
But I am still seeing these two issues...
1) If the PathTransition has a very slow rate then their nodes will be invisible.
2) In the game there is a turret with a long barrel that follows your mouse (using onMouseMoved). If I move the mouse up through the middle of the turret so that the rotation angle changes by 180 degrees in one instance, then the barrel will flip to the other side leaving a ghost image of the barrel at its previous position. The ghost image disappears once something gets drawn at its position.
BTW, thank you for to all those that responded so far, that flickering issue was stressing me out.
jose
________________________________
From: Richard Bair <richard.bair at oracle.com>
To: Jose Martinez <jmartine_1026 at yahoo.com>
Cc: Kevin Rushforth <kevin.rushforth at oracle.com>; "openjfx-dev at openjdk.java.net" <openjfx-dev at openjdk.java.net>
Sent: Friday, June 1, 2012 4:17 PM
Subject: Re: problem with PathTransition causing flickering of its Node
OK cool, the flickering images was surprising but good to see it isn't there on the latest :-). As for the other issue, that one is almost certainly a dirty region bug, in which case setting dirty opts off should fix it.
Richard
On Jun 1, 2012, at 9:04 AM, Jose Martinez wrote:
> Kevin,
>
> Just a few tests and I do NOT see the flickering. Wow i'm pretty impressed. I will continue to run tests through today and into tonight. I'll respond with an update tonight.
>
> BTW, I am going to send out another email for this other problem I am having but figure I give a heads up now since I still see the problem happening in 2.2. I get ghost images (images remaining after they have moved). Where the enemy units use PathTransitions to move, the projectiles use a Timeline that binds to the projectiles TranslateYProperty. I'll send another email for this issue, but it is happening in 2.2.
>
> thanks
> jose
>
>
> ________________________________
> From: Jose Martinez <jmartine_1026 at yahoo.com>
> To: Kevin Rushforth <kevin.rushforth at oracle.com>
> Cc: "openjfx-dev at openjdk.java.net" <openjfx-dev at openjdk.java.net>
> Sent: Friday, June 1, 2012 11:40 AM
> Subject: Re: problem with PathTransition causing flickering of its Node
>
> Ok i'll do that now.
>
> jose
>
>
> ________________________________
> From: Kevin Rushforth <kevin.rushforth at oracle.com>
> To: Jose Martinez <jmartine_1026 at yahoo.com>
> Cc: "steve.x.northover at oracle.com" <steve.x.northover at oracle.com>; "openjfx-dev at openjdk.java.net" <openjfx-dev at openjdk.java.net>
> Sent: Friday, June 1, 2012 11:36 AM
> Subject: Re: problem with PathTransition causing flickering of its Node
>
> Hi Jose,
>
> We are about to release JavaFX 2.2. Can you try it with the latest
> developer preview version of 2.2?
>
> -- Kevin
>
>
> Jose Martinez wrote:
>> Steve,
>>
>> Here is all the information:
>>
>> Netbeans 7.2 (though this happened in 7.1) running as WebStart.
>> Java 7u4
>> JFX 2.1
>> Windows 7
>>
>> Doing the sample might be a little difficult but I will give it a try.
>>
>> I wonder if there is a way I can setup my groups, maybe flatten the whole thing out so that there is less nested Groups, so that this would occur less.
>>
>> thanks
>> jose
>>
>>
>> ________________________________
>> From: "steve.x.northover at oracle.com" <steve.x.northover at oracle.com>
>> To: openjfx-dev at openjdk.java.net
>> Sent: Friday, June 1, 2012 11:09 AM
>> Subject: Re: problem with PathTransition causing flickering of its Node
>>
>> First off, what platform are you on? Second can you create a simple
>> example that flickers and either post it here or enter a JIRA?
>>
>> Thanks!
>> Steve
>>
>> On 01/06/2012 11:05 AM, Joseph Andresen wrote:
>>
>>> Can you describe the state of the scene? Are you using a perspective camera?
>>>
>>>
>>>
>>> On Jun 1, 2012, at 7:53 AM, Kevin Rushforth<kevin.rushforth at oracle.com> wrote:
>>>
>>>
>>>> One thing to try: can you run it with "-Dprism.dirtyopts=false" and see if the problem persists?
>>>>
>>>> In any case, please file a JIRA bug against the "Animation" component.
>>>>
>>>> -- Kevin
>>>>
>>>>
>>>> Jose Martinez wrote:
>>>>
>>>>> In the project (a video game) I am working on I use a lot of PathTransitions to move enemy units across the map. I am noticing flickering of the Nodes in the PathTransitions. By flickering I mean they lose and gain visibility. It does not happen all the time. The paths are pretty simple Shapes... straight lines. I am using Orthogonal orientation.
>>>>>
>>>>> here are some things I have noticed....
>>>>>
>>>>> 1) There is an increase in flickering occurring when there is a lot happening on the screen.
>>>>> 2) There is an increase in flickering when the PathTransition's Node is moving over another Node.
>>>>> 3) Points 1 and 2 might be related or have the same root cause but its hard to tell.
>>>>> 4) If I change the rate of PathTransition to a low number (so that the Node is moving really slow) then the Node just becomes non-visible (cant see it on the screen) yet it is there because the projectiles in the game that are shooting the Nodes are in fact striking them, so you can tell that the Node is in fact moving along the path but just not visible. UPDATE: This also happens when moving at non-slow regular rate as I found out last night.
>>>>> 6) I do not suspect its a performance issue because when I do cause performance issues I get a studder not a flicker and the whole game slows up. While flickering the Node still moves smoothly through the path.
>>>>> Currently the Node that I am using in this case is a Group with an ImageView and an invisible Rectangle in it. This Group is inside another which is inside another Group which is inside the root Scene.
>>>>>
>>>>> Any ideas what could be causing the flickering?
>>>>>
>>>>> thanks
>>>>> jose
>>>>>
>>>>>
More information about the openjfx-dev
mailing list