BVE WorldWide
Would you like to react to this message? Create an account in a few clicks or log in to continue.

One complex face vs. several simpler faces

2 posters

Go down

One complex face vs. several simpler faces Empty One complex face vs. several simpler faces

Post by Dexter Sat Jul 20, 2019 9:01 am

Hello,

I was thinking about how to handle and object - if several smaller faces will have worse impact on performance than one complex face. I suppose they would due to more faces, more texture calls and more draw call. Correct me if I am wrong. Thank you.
Dexter
Dexter

Posts : 2137
Join date : 2011-07-08
Age : 36
Location : Brno, Czech republic

http://www.brnobve.eu

Back to top Go down

One complex face vs. several simpler faces Empty Re: One complex face vs. several simpler faces

Post by leezer3 Sat Jul 20, 2019 11:00 am

Yes, but no Wink

This is an incredibly complex question to answer fully. Some basic points:

  1. Any faces containing transparency must be depth sorted and renderered separately. (~ x3 impact of a solid face)
  2. Similarly, a transparent face cannot be cached as such .
  3. If a face / combination of faces are static, contain no transparency and are and within the same object, they will likely be combined into a single draw call. Greater numbers of verticies will increase loading time, and the initial stutter when a block is first made visible, but not FPS after that.
  4. Avoid texture shifts if at all possible. These are expensive, and mean that a new draw call must be started.
  5. Duplicate vertices will be eliminated in most cases (If an object contains more than 10,000 verticies, no duplicate elimination is done)

leezer3

Posts : 1873
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum