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

Question Using Geometry Shader will make high performance or not

Discussion in 'Scripting' started by GameDeveloperAf, May 12, 2021.

  1. GameDeveloperAf

    GameDeveloperAf

    Joined:
    Jul 3, 2020
    Posts:
    71
    So 2 days ago I posted about share vertex for performance. Then I learnt than it is not possible because of different uvs. Now I found geometry shader. My question is. Does geometry shader is good for performance or not. I know that geometry shader is just a like an appearance. I can not add colliders or nothing else. İt just for appearance. I wanted to know that if this geometry shader would be good for performance, then how many maximum vertices and triangles normals and uvs can it get? Or is the geometry shader does not make a scene too? Using Geometry Shader will make high performance or not?
     
  2. Yoreki

    Yoreki

    Joined:
    Apr 10, 2019
    Posts:
    2,590
    Joe-Censored and Kurt-Dekker like this.
  3. GameDeveloperAf

    GameDeveloperAf

    Joined:
    Jul 3, 2020
    Posts:
    71
    There were issue with this question https://forum.unity.com/threads/geometry-shader.1108685/ and I wanted to delete but I could not then I reposted again. If you can then delete this post https://forum.unity.com/threads/geometry-shader.1108685/
     
  4. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,756
    These questions are equivalent to "How many angels can dance on the head of a pin?"

    You need to go and find out with your specific problem, with your angels and your pin.

    Nobody here can answer it for you.

    Use the profiler, do some experiments, and remember the answer in the Unity editor is completely irrelevant.

    The only valid answer will be on THE SPECIFIC HARDWARE you are building the game for.

    If it's a $50 el-cheapo Android tablet, that's gonna be a LOT different than the latest and greatest smokin' hot PC with crazy video card and terabytes of RAM.

    Get crackin' and stop speculatin'. You are WAY overthinking this. Nobody here knows. There's millions of internet posts telling you general good practices for performance. Read those, try some stuff, there is no other way.
     
  5. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    Performance questions are almost always answered with "it depends". Even if you were somehow able to provide all the relevant info about your project and target platform though, it is still difficult to answer these kinds of questions, because it is unlikely someone else has created a similar enough project to yours, and targeted similar enough hardware, to provide a definitive answer. It is usually best just to prototype it and test the performance yourself.
     
  6. GameDeveloperAf

    GameDeveloperAf

    Joined:
    Jul 3, 2020
    Posts:
    71
    Thanks I get it.
     
  7. GameDeveloperAf

    GameDeveloperAf

    Joined:
    Jul 3, 2020
    Posts:
    71
    First of all, I get information when I start doing new things. I asked here because I couldn't find an answer to my question. I'm looking for the answer to my problem before I ask anything here. If I can't find an answer to my question, I have to ask here. I get it, thanks for responding.