POV-Ray : Newsgroups : povray.animations : POV Seems to Parse Everything for Every Frame : Re: POV Seems to Parse Everything for Every Frame Server Time
27 Sep 2024 18:17:15 EDT (-0400)
  Re: POV Seems to Parse Everything for Every Frame  
From: Mike Williams
Date: 14 May 2004 16:12:00
Message: <lGflvBAlZQpAFwWk@econym.demon.co.uk>
Wasn't it Bret who wrote:
>I'm currently running an animation that (so far) has taken 23 hours to parse
>and 1.5 hours to render.  It seems to be parsing everything for every
>frame.  Is there anyway to convince POV to just read the files in once?

If it's taking that long to parse, then I guess that you're doing an
awful lot of actual calculation in your POV code. You might consider
performing these calculations only in the first frame, writing the
calculated data out to a file, and coding subsequent frames to read the
file instead of repeating the calculations.

#if (frame_number = initial_frame) 
  . . . do the calculations
  #fopen F "temporary.dat" write
  #write(. . .)
  #fclose F
#else
  // don't do the calculations
  #fopen F "temporary.dat" read
  #read(. . .)
  #fclose F
#end

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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