POV-Ray : Newsgroups : povray.binaries.images : city buildings-- WIP 9_29_2020 : Re: city buildings-- WIP 9_29_2020 Server Time
10 May 2024 01:59:23 EDT (-0400)
  Re: city buildings-- WIP 9_29_2020  
From: Thomas de Groot
Date: 2 Oct 2020 02:47:32
Message: <5f76cd04$1@news.povray.org>
Op 01/10/2020 om 23:40 schreef Kenneth:
> "Kenneth" <kdw### [at] gmailcom> wrote:
> 
>>
>> The scene so far parses 'reasonably' quickly: For 650 buildings, with AA but no
>> radiosity yet--  78 seconds total render time on my old Windows 7 machine (at
>> 1600 X 900). The 'peak memory used' is about 1.1MB.
>>
> 
> Duh. That should be 1.1 GB of memory, not MB. Sorry.
> 
> 1000 buildings uses about 1.4GB
> 
> One trick that I learned long ago was to pre-#declare image_map pigments, when
> they are going to be used repeatedly in a scene. That saves a whopping amount of
> memory usage later.
> 
> Like,
> #declare MY_PIGMENT = pigment{image_map{png "my_image.png" interpolate 2}}
> #for(i,1,1000)
> box{0,1 pigment{MY_PIGMENT} translate ...}
> #end
> 
> instead of...
> #for(i,1,1000)
> box{0,1 pigment{image_map{png "my_image.png" interpolate 2}}
> translate ...}
> #end
> 

Yes sir. You probably learned this the hard way, like I did. ;-)

-- 
Thomas


Post a reply to this message

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