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

D3D Device is being create from a thread different form the thread that uses it.

    Details

      Description

      It is a regression fir the latest push to "RT-13660 PaintRunnable refactoring"

      CreateD3DFactory is being called from JavaFX Application Thread, not the renderer thread.

      ViewScene.java, line 63 : ResourceFactory factory = GraphicsPipeline.getDefaultResourceFactory();

      As a result I have 0.7 FPS instead of 40 and D3D Error :

      Direct3D9: (WARN) :Device that was created without D3DCREATE_MULTITHREADED is being used by a thread other than the creation thread.
      Direct3D9: (ERROR) :Final Release for a device can only be called from the thread that the device was created from.

      Here is the log :

      Prism pipeline init order: d3d
      Using t2k for text rasterization
      Using dirty region optimizations
      Prism pipeline name = com.sun.prism.d3d.D3DPipeline
      Loading D3D native library ...
          succeeded.
      OS Information:
          Windows 7 build 7601
      D3D Driver Information:
          ATI Radeon HD 5700 Series
          \\.\DISPLAY2
          Driver aticfx32.dll, version 8.17.10.1083
          Pixel Shader version 3.0
          Device : ven_1002, dev_68B8, subsys_21401462
      Direct3D initialization succeeded
      (X) Got class = class com.sun.prism.d3d.D3DPipeline
      D3DPipeline:getInstance(), d3dEnabled=true
      getInstance(): Thread[QuantumRenderer-0,5,main]
      Initialized prism pipeline: com.sun.prism.d3d.D3DPipeline
      getD3DResourceFactoryThread[JavaFX Application Thread,5,main]
      RESIZE: 1988713030609123 w: 1200 h: 614
      getD3DResourceFactoryThread[QuantumRenderer-0,5,main]
      FPS: 0.77
      FPS: 0.78
      QuantumRenderer: shutdown
      Pipeline.dispose:Thread[QuantumRenderer-0,5,main]

        Attachments

          Activity

            People

            • Assignee:
              morris Morris Meyer (Inactive)
              Reporter:
              kprazdnikwse Kirill.Prazdnikov (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: