Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

ComputeShader ComputeBuffer Size Limits?

Discussion in 'Shaders' started by RaymingW, Nov 5, 2019.

  1. RaymingW

    RaymingW

    Joined:
    Nov 11, 2017
    Posts:
    36
    Hi all,

    I'm building an interactive big data visualization software with Unity right now and I'm planning on using compute shader to draw on rendertexture or construct mesh.

    I'm surveying the limitation when comes to the scale of the data. Is there a place I can find out the max size of ComputeBuffer size? This is the closet post I can find right now:
    https://forum.unity.com/threads/dx11-computeshader-computebuffer-size-limits.223503/

    Another question I have is how expensive is allocating NativeArray to compute buffer? I tried allocating a float array with a length of 30,000 and it took 0.28ms according to the profiler. So I'm good with the current use case I guess. But I'm curious When I will hit the bottleneck.

    Cheers!
     
    Rs likes this.
  2. xujinm

    xujinm

    Joined:
    Dec 11, 2018
    Posts:
    13
    hi,dude,did you find the solution?
     
  3. joshuacwilde

    joshuacwilde

    Joined:
    Feb 4, 2018
    Posts:
    692
    It just depends on your GPU. You need to look up the specs online.