![](/i/fill.gif) |
![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Fabian BRAU <Fab### [at] umh ac be> wrote:
: Because one mesh of an object or 1000 mesh (copies) of the
: same mesh use almost the same amount of memory.
With that small mesh, not really. There has to be a way to say "a copy
of this mesh is located here". This 'handle' with information about the
copy may take even more memory than that mesh with two triangles.
--
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Thanks for the clarification.
Fabian.
>
> Fabian BRAU <Fab### [at] umh ac be> wrote:
> : Because one mesh of an object or 1000 mesh (copies) of the
> : same mesh use almost the same amount of memory.
>
> With that small mesh, not really. There has to be a way to say "a copy
> of this mesh is located here". This 'handle' with information about the
> copy may take even more memory than that mesh with two triangles.
>
> --
> main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
> ):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Warp wrote:
>
> Have you tested if there's any difference in render time between putting
> all those 1000 rectangles into a union or separately in the scene?
> Povray may be able to make some bounding box optimizations with unions,
> but I may remember wrong.
>
The rectangles are already structured in unions.
I tested different arrangements concerning this point (larger/smaller
blocks of rectangles) and there was only small difference in memory use,
but time was the same (+/- 1 sec)
Christoph
--
Christoph Hormann <chr### [at] gmx de>
Homepage: http://www.schunter.etc.tu-bs.de/~chris/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
I made a more specific test with a scene containing 11620 rectangles
(and only those rectangles :-).
These are the results:
-----------------------------------------------------------------
mesh
-----------------------------------------------------------------
Peak memory used: 20078124 bytes
-----------------------------------------------------------------
Time For Parse: 0 hours 0 minutes 3.0 seconds (3 seconds)
Time For Trace: 0 hours 1 minutes 13.0 seconds (73 seconds)
Total Time: 0 hours 1 minutes 16.0 seconds (76 seconds)
-----------------------------------------------------------------
triangle union
-----------------------------------------------------------------
Peak memory used: 20313423 bytes
-----------------------------------------------------------------
Time For Parse: 0 hours 0 minutes 4.0 seconds (4 seconds)
Time For Trace: 0 hours 1 minutes 35.0 seconds (95 seconds)
Total Time: 0 hours 1 minutes 39.0 seconds (99 seconds)
-----------------------------------------------------------------
polygon
-----------------------------------------------------------------
Peak memory used: 20260648 bytes
-----------------------------------------------------------------
Time For Parse: 0 hours 0 minutes 3.0 seconds (3 seconds)
Time For Trace: 0 hours 1 minutes 9.0 seconds (69 seconds)
Total Time: 0 hours 1 minutes 12.0 seconds (72 seconds)
-----------------------------------------------------------------
box 0 height
-----------------------------------------------------------------
Peak memory used: 20450420 bytes
-----------------------------------------------------------------
Time For Parse: 0 hours 0 minutes 2.0 seconds (2 seconds)
Time For Trace: 0 hours 1 minutes 7.0 seconds (67 seconds)
Total Time: 0 hours 1 minutes 9.0 seconds (69 seconds)
-----------------------------------------------------------------
clipped plane
-----------------------------------------------------------------
Peak memory used: 22095452 bytes
-----------------------------------------------------------------
Time For Parse: 0 hours 0 minutes 3.0 seconds (3 seconds)
Time For Trace: 0 hours 1 minutes 9.0 seconds (69 seconds)
Total Time: 0 hours 1 minutes 12.0 seconds (72 seconds)
--
Christoph Hormann <chr### [at] gmx de>
Homepage: http://www.schunter.etc.tu-bs.de/~chris/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Ahhh! The zero-height box wins :) I'll be using those for my clouds now
:)
~Sam
Christoph Hormann wrote:
> -----------------------------------------------------------------
> polygon
> -----------------------------------------------------------------
> Peak memory used: 20260648 bytes
> -----------------------------------------------------------------
> Time For Parse: 0 hours 0 minutes 3.0 seconds (3 seconds)
> Time For Trace: 0 hours 1 minutes 9.0 seconds (69 seconds)
> Total Time: 0 hours 1 minutes 12.0 seconds (72 seconds)
>
> -----------------------------------------------------------------
> box 0 height
> -----------------------------------------------------------------
> Peak memory used: 20450420 bytes
> -----------------------------------------------------------------
> Time For Parse: 0 hours 0 minutes 2.0 seconds (2 seconds)
> Time For Trace: 0 hours 1 minutes 7.0 seconds (67 seconds)
> Total Time: 0 hours 1 minutes 9.0 seconds (69 seconds)
>
> -----------------------------------------------------------------
> clipped plane
> -----------------------------------------------------------------
> Peak memory used: 22095452 bytes
> -----------------------------------------------------------------
> Time For Parse: 0 hours 0 minutes 3.0 seconds (3 seconds)
> Time For Trace: 0 hours 1 minutes 9.0 seconds (69 seconds)
> Total Time: 0 hours 1 minutes 12.0 seconds (72 seconds)
>
> --
> Christoph Hormann <chr### [at] gmx de>
> Homepage: http://www.schunter.etc.tu-bs.de/~chris/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |