Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: OpenGL 4.2: Compute Shader 'imageStore' Performance

  1. #1
    Intern Newbie
    Join Date
    Mar 2013
    Posts
    42

    Question OpenGL 4.2: Compute Shader 'imageStore' Performance

    Hey,

    I have just one short question:
    "How can i store single texels in an efficient way in Compute Shaders?"
    The performance of the function imageStore is really bad, so how can i increase that?

    I know that SSBOs could be an alternative way to deal with this problem, but i would
    really prefer to stay with image textures.

    On my GPU, the imageStore function halfs the performance of the compute shader. That
    is not really what i want!

    Hope someone can help me!
    - Daniel

  2. #2
    Intern Newbie
    Join Date
    Mar 2013
    Posts
    42
    Has nobody an idea?

  3. #3
    Senior Member OpenGL Guru Dark Photon's Avatar
    Join Date
    Oct 2004
    Location
    Druidia
    Posts
    3,224
    Are you doing scattered writes? If so, figure out how you can do sequential writes. If you have to, you can do scattered reads with sequential writes in order later to put things right.

    Also might consider, do you ned a compute shader? Perhaps you can use transform feedback or standard rasterization to write out your data stream(s). I'm not saying the compute shader is a perf problem -- I don't have much experience with them. Just suggesting something else you might try for a comparison data point.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •