1 Reply Latest reply on Jul 28, 2013 5:23 AM by 918731

    GraphicsContext and clip

    918731

      Has anybody tested the clip function of GraphicsContext? Its dead slow for me, I built a path of 20 points, then attempted to fill the enclosing box with a mosaic of an image (in total, 768 instances of the image would be drawn), nevertheless, even 100 images make the application non-responsive, the J2D backends starts to burst

       

      [error] java.lang.IllegalStateException: Operation requires resource lock

      [error]         at com.sun.prism.impl.ManagedResource.assertLocked(ManagedResource.java:228)

      [error]         at com.sun.prism.impl.ManagedResource.getResource(ManagedResource.java:206)

      [error]         at com.sun.prism.j2d.J2DTexture.getBufferedImage(J2DTexture.java:101)

      [error]         at com.sun.prism.j2d.J2DRTTexture.createAWTGraphics2D(J2DRTTexture.java:104)

      [error]         at com.sun.prism.j2d.J2DPrismGraphics.readBack(J2DPrismGraphics.java:1024)

      [error]         at com.sun.javafx.sg.prism.NGNode.renderNodeBlendMode(NGNode.java:494)

      [error]         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:402)

      [error]         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:69)

      [error]         at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1277)

      [error]         at com.sun.javafx.sg.prism.NGGroup.renderChildren(NGGroup.java:237)

      [error]         at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:203)

      [error]         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:412)

      [error]         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:69)

      [error]         at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1277)

      [error]         at com.sun.javafx.sg.prism.NGGroup.renderChildren(NGGroup.java:237)

      [error]         at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:203)

      [error]         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:412)

      [error]         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:69)

      [error]         at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1277)

      [error]         at com.sun.javafx.sg.prism.NGGroup.renderChildren(NGGroup.java:237)

      [error]         at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:203)

      [error]         at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:1254)

      [error]         at com.sun.javafx.sg.prism.NGNode.renderForClip(NGNode.java:633)

      [error]         at com.sun.javafx.sg.prism.NGNode.renderRectClip(NGNode.java:527)

      [error]         at com.sun.javafx.sg.prism.NGNode.renderClip(NGNode.java:553)

      [error]         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:408)

      [error]         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:69)

      [error]         at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1277)

      [error]         at com.sun.javafx.sg.prism.NGGroup.renderChildren(NGGroup.java:237)

      [error]         at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:203)

      [error]         at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:1254)

      [error]         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:412)

      [error]         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:69)

      [error]         at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1277)

      [error]         at com.sun.javafx.sg.prism.NGGroup.renderChildren(NGGroup.java:237)

      [error]         at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:203)

      [error]         at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:1254)

      [error]         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:412)

      [error]         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:69)

      [error]         at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1277)

      [error]         at com.sun.javafx.sg.prism.NGGroup.renderChildren(NGGroup.java:237)

      [error]         at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:203)

      [error]         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:412)

      [error]         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:69)

      [error]         at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1277)

      [error]         at com.sun.javafx.tk.quantum.ViewPainter.doPaint(ViewPainter.java:117)

      [error]         at com.sun.javafx.tk.quantum.AbstractPainter.paintImpl(AbstractPainter.java:212)

      [error]         at com.sun.javafx.tk.quantum.PresentingPainter.run(PresentingPainter.java:95)

      [error]         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

      [error]         at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)

      [error]         at com.sun.prism.render.RenderJob.run(RenderJob.java:56)

      [error]         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

      [error]         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

      [error]         at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:129)

      [error]         at java.lang.Thread.run(Thread.java:724)

      [error] J2D Texture Pool: 25,138,776 used (9.4%), 25,138,776 managed (9.4%), 268,435,456 total

      [error] 3063 total resources being managed

      [error] 1 permanent resources (0.0%)

      [error] 2669 resources locked (87.1%)

      [error] 28 resources contain interesting data (0.9%)

      [error] 0 resources disappeared (0.0%)

       

      while the ES2Pipeline is unable to deliver even 0.1 fps. My system is:

       

      Processor Information:

          Vendor:  GenuineIntel

          Speed: 1600 Mhz

          8 logical processors

          4 physical processors

          HyperThreading:  Supported

          FCMOV:  Supported

          SSE2:  Supported

          SSE3:  Supported

          SSSE3:  Supported

          SSE4a:  Unsupported

          SSE41:  Supported

          SSE42:  Supported

          

      Network Information:

          Network Speed:  

          

      Operating System Version:

          Ubuntu 13.04 (64 bit)

          Kernel Name:  Linux

          Kernel Version:  3.8.0-27-generic

          X Server Vendor:  The X.Org Foundation

          X Server Release:  11303000

          X Window Manager:  KWin

          Steam Runtime Version:  steam-runtime-release-i386_2013-06-28

          

      Video Card:

          Driver:  ATI Technologies Inc. AMD Radeon HD 6500M/5600/5700 Series

       

          Driver Version:  4.2.12217 Compatibility Profile Context 12.104

          Desktop Color Depth: 24 bits per pixel

          Monitor Refresh Rate: 60 Hz

          VendorID:  0x1002

          DeviceID:  0x68c1

          Number of Monitors:  1

          Number of Logical Video Cards:  1

          Primary Display Resolution:  1366 x 768

          Desktop Resolution: 1366 x 768

          Primary Display Size: 13.54" x 7.64"  (15.51" diag)

                                                  34.4cm x 19.4cm  (39.4cm diag)

          Primary VRAM Not Detected

       

       

      So has anyone tested this at all?.