problem with PathTransition causing flickering of its Node
Jose Martinez
jmartine_1026 at yahoo.com
Fri Jun 1 08:19:15 PDT 2012
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