Results 1 to 3 of 3

Thread: OpenGL 4.2: Compute Shader 'imageStore' Performance

  1. #1
    Member Newbie
    Join Date
    Mar 2013
    Posts
    44

    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
    Member Newbie
    Join Date
    Mar 2013
    Posts
    44
    Has nobody an idea?

  3. #3
    Senior Member OpenGL Guru
    Join Date
    Oct 2004
    Posts
    4,658
    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.

Similar Threads

  1. Compute Shader Performance Issues
    By krackaan in forum OpenGL: Advanced Coding
    Replies: 5
    Last Post: 11-16-2017, 09:03 AM
  2. Replies: 3
    Last Post: 01-28-2017, 05:32 AM
  3. OpenGL Compute vs OpenCL Performance
    By hiya83 in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 03-14-2016, 04:21 AM
  4. Replies: 0
    Last Post: 08-19-2013, 05:00 PM
  5. compute shader and imageStore to image2D miplevel
    By mtnk4t in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 12-25-2012, 04:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean