POV-Ray : Newsgroups : povray.general : POV Wishlist : Re: POV Wishlist Server Time
3 Aug 2024 10:20:01 EDT (-0400)
  Re: POV Wishlist  
From: Warp
Date: 16 Mar 2004 17:13:16
Message: <40577bfc@news.povray.org>
Chambers <bdc### [at] yahoocom> wrote:
> I always thought the reason that parsing scenes was slow had nothing to do
> with the actual parser, and everything to do with memory allocation.  I seem
> to remember reading about this in the vfaq and on this ng, but I can't seem
> to find anything on it now.

  When creating tons of objects or very big objects (such as gigantic
meshes), the main slowdown is indeed memory allocation.
  However, if you make code which calculates something without creating
objects, then quite obviously memory allocation is not an issue there.
  If you want a concrete example, look at the raytracer made with the SDL
in the docs... :)

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

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