Results 1 to 8 of 8

  Click here to go to the first Developer post in this thread.  

Thread: FPS vegetation increased performance

  1. #1
    this is a little little tutorial on how to increase your vegetation performance impact on FPS:
    Quote Originally Posted by [b
    Quote[/b] ]I noticed one thing:

    What really causes lag is the Pixel shader and Vertex Shader of the _ca texture (the vegetation) and the shadow.
    Unfortunately, we can't edit the shadow, since it's hardcoded. But we surely can edit the PS and VS:
    for vegetation, you normally use VertexShader: NormalMapSpecularThroughNoFade and PixelShader: NormalMapSpecularThrough.

    If instead of that PixelShader, we add the simple PixelShader: NormalMapThrough but with the flag NoAlphaWrite, we will have the SAME effect, but with an increase of FPS and performance

    Check yourself:

    Before:


    After:

  2. #2
    Interesting Linker Split - did you do large scale tests yet?
    Maybe bring the idea to the attention of BI if it works well.

  3.   This is the last Developer post in this thread.   #3
    BI Developer Suma's Avatar
    Join Date
    Jun 27 2001
    Location
    Czech Republic
    Posts
    3,708
    By using NormalMapThrough instead of NormalMapSpecularThrough you remove specular highlights on leaves, which makes the computations easier (shader is shorter). I understand this can bring better performance.

    As for NoAlphaWrite, I do not see how could it bring any performance. Did you measure it without this flag? I expect NoAlphaWrite to cause significant artifacts when shadows are casted on the tree using it, therefore I suggest avoiding it.
    Ondrej Spanel, BIS Lead Programmer

  4. #4
    Gunnery Sergeant
    Join Date
    Jan 18 2002
    Location
    South Africa
    Posts
    463
    What sort of FPS changes are you seeing in ArmA itself? Buldozer running in a window might not be that representative.

  5. #5
    I thought it was mainly the specular setting that would cause the bump in preformance, as we have seen that happens when using the LowPlants mod. I believe that using just that method you would get a performance slightly worse than using the lowplants mod. Just my opinion.
    Click here
    Spoiler:

  6. #6
    First Sergeant Linker Split's Avatar
    Join Date
    Feb 1 2006
    Location
    Rom
    Posts
    854
    Author of the Thread
    I checked also without NoAlphaWrite flag, it's the same result...
    Also, seems that what really causes lag is (obviously) shadow casted on both ground and objects.

    I got a slightly FPS increased performance when testing this new RVMAT on my HDT island (which got a lot of plants), but if I enable then the shadow setting, then FPS decrease again

    #EDIT

    Can the textures have a performance impact on FPS?

    I mean, I saved my vegetation Normal map with _novhq suffix, instead of _non one... but I got no differences.

    I also tried to use the normal map parallax (_nopx) and the normal map Fade (_nof), still the same...

    Why you BIS left the TexConvert.cfg editable, while even if i try to change the compression method for one class (for example from DXT1 to DXT5), texView 2 still saves the texture with the default compression method?




  7. #7
    OK, this is of interest to me, as I have large forests of custom trees
    Fire And Smoke for ArmA2: JTD_FireAndSmoke v0.2

    For better future effects addons, please vote for this ticket.

  8. #8
    First Sergeant Linker Split's Avatar
    Join Date
    Feb 1 2006
    Location
    Rom
    Posts
    854
    Author of the Thread
    Quote Originally Posted by [b
    Quote[/b] ]Yes, we found solution how to reduce overdraw about 25%, but this solution need diferent representation of tree surfaces and vertexes (diferent model and binarisation of this model and diferent way, how to switch vegetation lods). So it's not usable for curent vegetation data and will be used in next projects. Alphatextures mean also masked textures (that is 1bit transparency or opacity if you want and we use them)
    This is what O'hara said on this forum (I can't find the source)
    Basically BI will not implement it until ArmA2... is this still happening? Is this still true?

    if so, basically we island makers are screwed.




Posting Permissions

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