POV-Ray : Newsgroups : povray.advanced-users : rectangles Server Time
30 Jul 2024 06:27:14 EDT (-0400)
  rectangles (Message 11 to 15 of 15)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Warp
Subject: Re: rectangles
Date: 21 Jun 2000 06:41:26
Message: <39509bd6@news.povray.org>
Fabian BRAU <Fab### [at] umhacbe> 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

From: Fabian BRAU
Subject: Re: rectangles
Date: 21 Jun 2000 06:44:35
Message: <39509C85.C2FCEB@umh.ac.be>
Thanks for the clarification.

Fabian.


> 
> Fabian BRAU <Fab### [at] umhacbe> 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

From: Christoph Hormann
Subject: Re: rectangles
Date: 21 Jun 2000 07:52:05
Message: <3950AC61.2412607F@schunter.etc.tu-bs.de>
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] gmxde>
Homepage: http://www.schunter.etc.tu-bs.de/~chris/


Post a reply to this message

From: Christoph Hormann
Subject: Re: rectangles
Date: 21 Jun 2000 07:59:56
Message: <3950AE38.5879F2E7@schunter.etc.tu-bs.de>
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] gmxde>
Homepage: http://www.schunter.etc.tu-bs.de/~chris/


Post a reply to this message

From: SamuelT
Subject: Re: rectangles
Date: 21 Jun 2000 13:16:09
Message: <3950F933.E71030D9@aol.com>
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] gmxde>
> Homepage: http://www.schunter.etc.tu-bs.de/~chris/


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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