CSystem / softart

Automatically exported from code.google.com/p/softart
Other
0 stars 0 forks source link

Optimize clipper performance #231

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Description:
  Clipper performance is a bit slow. try to improve it.

Original issue reported on code.google.com by wuye9036 on 27 Mar 2013 at 7:27

GoogleCodeExporter commented 9 years ago
In old version, clipper will copy all node to new vs output buffer and generate 
new indices for result. Vertex copying is wasted much time than we expected.

So we just to write a new version of clipper. In this version:

1, Clipper allocate vs_output from a buffer for new edge vertex;
2, New edge vertex and vertex in clip planes we will generate a pointer 
sequence.
3, We use vertex pointer as element of clipped triangles list to instead index.

Original comment by wuye9036 on 8 Apr 2013 at 12:05

GoogleCodeExporter commented 9 years ago
This issue was updated by revision a3cf71376781.

SALVIA:
  Port clipper to new design. (see issue 231)
  Remove code of fill wireframe clipping.
  A structure was used to instead a so long parameter list of clip-related functions.
  Rename clipper::clip to clipper::clip_triangle.

Original comment by wuye9036 on 27 Apr 2013 at 1:20

GoogleCodeExporter commented 9 years ago
This issue was updated by revision 67a9116175fd.

SALVIA:
  Re-enable rasterizer.

Original comment by wuye9036 on 27 Apr 2013 at 1:20

GoogleCodeExporter commented 9 years ago
This issue was updated by revision 2be491ab6946.

SALVIA:
  Compact Sponza model. In new scene, performance will increase about 10%.
  Add new performance document on Asus A45V.

Original comment by wuye9036 on 27 Apr 2013 at 1:20

GoogleCodeExporter commented 9 years ago

Original comment by wuye9036 on 11 May 2013 at 1:44