Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8127965

Strange behaviour of CacheHints

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 7u6
    • Fix Version/s: 7u6
    • Component/s: javafx
    • Labels:
    • Environment:

      Tested on Windows 7, JDK 7 u3, JavaFX 2.2 b 19

      Description

      I am trying to get a smooth scaling behaviour for a complex scene where the normal rendering just takes too long for a smooth scaling. I thus tried to use caching of nodes together with appropriate CacheHints. First of all I have a Group node which contains all other nodes that will be rendered. Caching is always switched on for this group node and the default setting for the CacheHint is QUALITY. Now my idea was to switch to SPEED before I start scaling the group node and back to QUALITY once I stop scaling (via mouse-wheel events). This works in principle and gives a better scaling behaviour than without it but I have observed the following strange behaviour. When I switch back from SPEED to QUALITY this does not force a rendering of the scene, which I think it should do because this is just like any other parameter change which would have a visible effect. On the other hand there is a noticable delay when switching initially from QUALITY to SPEED and it looks like this is causing a slow rendering, which in this case is not necessary because this transition cannot have any visible effect. This behaviour is strange because it is exactly the opposite of what I would expect and makes a smooth scaling impossible.

        Attachments

          Activity

            People

            Assignee:
            flar Jim Graham
            Reporter:
            dpausjfx Dr. Michael Paus (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: