Results 1 to 4 of 4

Thread: Efficient rendering of static geometry?

  1. #1
    Senior Member Regular Contributor karx11erx's Avatar
    Join Date
    Nov 2006
    Posts
    187

    Efficient rendering of static geometry?

    Can somebody give me an outline and a few pointers and ideas about how an efficient, simple static geometry renderer (walls, doors) would look like? I just don't know how to do such a thing. I am seeing games that push millions of triangles per frame on the screen, and my little old game I am trying to keep alive fails already at 10,000 or less.

    I know how to use VBOs and how to render to render targets, but I do not know enough in order to decrease rendering time of let's say 10,000 triangles with 100 different textures in a neglectable amount of time on some good current graphics hardware.

    Actually I wouldn't even know how to separate a lighting pass from a regular render pass.

  2. #2
    Member Contributor
    Join Date
    Mar 2006
    Posts
    53

    Re: Efficient rendering of static geometry?

    Depends a bit on your target hardware. SM4 hw with texture arrays for example allow you to separate materials from geometry at the batch level. So where once you had to dispatch geometry by material you can now lump into much larger chunks. Of course this holds for dynamic objects too, with the proviso that a buffer update will occur somewhere along the line.

    Overall keeping batch counts to the minimum seems to be key in maximizing perf, static or no.

  3. #3
    Senior Member Regular Contributor LangFox's Avatar
    Join Date
    Oct 2001
    Location
    Shen Zhen, Guangdong, China
    Posts
    102

    Re: Efficient rendering of static geometry?

    Use VBO and VAO
    Use DrawInstance
    Best Regards,
    LangFox


    http://hi.baidu.com/lang_fox

  4. #4
    Senior Member Regular Contributor karx11erx's Avatar
    Join Date
    Nov 2006
    Posts
    187

    Re: Efficient rendering of static geometry?

    Using SM4 is not really an option.

    What is VAO? And DrawInstance? (OpenGL)

Similar Threads

  1. Replies: 2
    Last Post: 01-13-2005, 09:03 AM
  2. Static geometry dynamic texture coords
    By sb in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 02-03-2003, 11:10 AM
  3. projected texture / static geometry
    By cru in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 01-02-2003, 05:57 AM
  4. What's best used for temporarily static geometry?
    By CGameProgrammer in forum OpenGL: Advanced Coding
    Replies: 14
    Last Post: 10-21-2002, 08:16 PM
  5. per pixel operations/static geometry
    By Ultrix in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 05-30-2002, 02:34 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