POV-Ray : Newsgroups : povray.general : mesh2 to mesh : Re: mesh2 to mesh Server Time
3 Aug 2024 22:12:07 EDT (-0400)
  Re: mesh2 to mesh  
From: Mike Williams
Date: 23 Sep 2003 17:00:10
Message: <wtLQlAAiMLc$EwQu@econym.demon.co.uk>
Wasn't it Warp who wrote:
>Slime <fak### [at] emailaddress> wrote:
>> Why do you prefer mesh over mesh2? They both contain the same data, but mesh
>> is (*much*) slower to parse.
>
>  Have you actually measured the parsing speed difference?
>  I haven't and I would be interested in knowing some percentages...

Here's the results of a quick test that I ran. I took an OBJ file and ran it through a
convertor that can output both mesh and mesh2 formats.

The OBJ file is 16.7Mb, and has 99213 vertices and 170376 faces.

The Mesh2 parsed in 45% of the time and used 72% of the memory. The Mesh1 is shown as
having 86 frame level objects because there's a separate mesh1 object for each part
that
has a different texture.


Scene contains 86 frame level objects; 0 infinite.

Statistics for C:\My Documents\Poser\MyStuff\Spacegirl\AlienM1.pov, Resolution 640 x
480
----------------------------------------------------------------------------
Pixels:          307840   Samples:          363544   Smpls/Pxl: 1.18
Rays:            363544   Saved:                 0   Max Level: 1/5
----------------------------------------------------------------------------
Ray->Shape Intersection          Tests       Succeeded  Percentage
----------------------------------------------------------------------------
Mesh                            387596          105567     27.24
Bounding Box                  11443310         3850760     33.65
Light Buffer                   1512203          649452     42.95
Vista Buffer                   1346432          769933     57.18
----------------------------------------------------------------------------
Calls to Noise:                  0   Calls to DNoise:             10
----------------------------------------------------------------------------
Shadow Ray Tests:           132628   Succeeded:                30319
----------------------------------------------------------------------------
Smallest Alloc:                 25 bytes   Largest:          1179672
Peak memory used:         46350651 bytes
----------------------------------------------------------------------------
Time For Parse:    0 hours  0 minutes  49.0 seconds (49 seconds)
Time For Trace:    0 hours  0 minutes   6.0 seconds (6 seconds)
    Total Time:    0 hours  0 minutes  55.0 seconds (55 seconds)
POV-Ray finished



Scene contains 1 frame level objects; 0 infinite.

Statistics for C:\My Documents\Poser\MyStuff\Spacegirl\AlienM1.pov, Resolution 640 x
480
----------------------------------------------------------------------------
Pixels:          307840   Samples:          363912   Smpls/Pxl: 1.18
Rays:            363912   Saved:                 0   Max Level: 1/5
----------------------------------------------------------------------------
Ray->Shape Intersection          Tests       Succeeded  Percentage
----------------------------------------------------------------------------
Mesh                            445143           85352     19.17
Bounding Box                  14542692         4389902     30.19
----------------------------------------------------------------------------
Calls to Noise:                  0   Calls to DNoise:             10
----------------------------------------------------------------------------
Shadow Ray Tests:            81231   Succeeded:                31723
----------------------------------------------------------------------------
Smallest Alloc:                 25 bytes   Largest:         12267096
Peak memory used:         33609623 bytes
----------------------------------------------------------------------------
Time For Parse:    0 hours  0 minutes  22.0 seconds (22 seconds)
Time For Trace:    0 hours  0 minutes   6.0 seconds (6 seconds)
    Total Time:    0 hours  0 minutes  28.0 seconds (28 seconds)
POV-Ray finished



-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.