POV-Ray : Newsgroups : povray.general : Here's an idea... Server Time
2 Nov 2024 04:24:39 EDT (-0400)
  Here's an idea... (Message 1 to 5 of 5)  
From: David Fontaine
Subject: Here's an idea...
Date: 9 Mar 2000 23:33:27
Message: <38C87A54.D0B38F44@faricy.net>
How 'bout, when POV parses a scene, it only loads macros and definitions
into memory if they're used. Because a lot of people make
general-purpose includes and don't use half of it for a particular
scene. This probably isn't worth it for smaller scenes, so maybe a
switch to turn it on, and normally it loads 'em all.
Then there's the whole wacky idea of a POV-script compiler, but I
realize that's probably much too much to ask :-)

--
___     _______________________________________________
 | \     |_          <dav### [at] faricynet> <ICQ 55354965>
 |_/avid |ontaine        http://www.faricy.net/~davidf/

"The only difference between me and a madman is that I'm not mad." -Dali


Post a reply to this message

From: Tom Melly
Subject: Re: Here's an idea...
Date: 10 Mar 2000 05:10:19
Message: <38c8ca0b@news.povray.org>
David Fontaine <dav### [at] faricynet> wrote in message
news:38C87A54.D0B38F44@faricy.net...
> How 'bout, when POV parses a scene, it only loads macros and definitions
> into memory if they're used.

Hmm, presumably, you'd have to parse each scene at least twice. The first
parse to find out what elements are actually used, the second to then check
the syntax of used macros etc.


Post a reply to this message

From: David Fontaine
Subject: Re: Here's an idea...
Date: 10 Mar 2000 17:40:28
Message: <38C9791A.E9266B05@faricy.net>
Tom Melly wrote:

> Hmm, presumably, you'd have to parse each scene at least twice. The first
> parse to find out what elements are actually used, the second to then check
> the syntax of used macros etc.

Yes, but the first one would be just a real quick run-through...

--
___     _______________________________________________
 | \     |_          <dav### [at] faricynet> <ICQ 55354965>
 |_/avid |ontaine        http://www.faricy.net/~davidf/

"The only difference between me and a madman is that I'm not mad." -Dali


Post a reply to this message

From: John VanSickle
Subject: Re: Here's an idea...
Date: 10 Mar 2000 21:29:07
Message: <38C9B1EF.56F196F1@erols.com>
David Fontaine wrote:
> 
> How 'bout, when POV parses a scene, it only loads macros and definitions
> into memory if they're used. Because a lot of people make
> general-purpose includes and don't use half of it for a particular
> scene. This probably isn't worth it for smaller scenes, so maybe a
> switch to turn it on, and normally it loads 'em all.

My latest IRTC entry uses about 6 Megs or so of memory.  My macro files
occupy less than 1% of this.  I think the POV team has bigger fish to fry.

Regards,
John


Post a reply to this message

From: David Fontaine
Subject: Re: Here's an idea...
Date: 11 Mar 2000 16:52:14
Message: <38CABF35.A79738AD@faricy.net>
John VanSickle wrote:

> David Fontaine wrote:
> >
> > How 'bout, when POV parses a scene, it only loads macros and definitions
> > into memory if they're used. Because a lot of people make
> > general-purpose includes and don't use half of it for a particular
> > scene. This probably isn't worth it for smaller scenes, so maybe a
> > switch to turn it on, and normally it loads 'em all.
>
> My latest IRTC entry uses about 6 Megs or so of memory.  My macro files
> occupy less than 1% of this.  I think the POV team has bigger fish to fry.

That is why it must be turned on first. I assume your scene didn't use LEGO
elements... (hint hint)

--
___     _______________________________________________
 | \     |_          <dav### [at] faricynet> <ICQ 55354965>
 |_/avid |ontaine        http://www.faricy.net/~davidf/

"The only difference between me and a madman is that I'm not mad." -Dali


Post a reply to this message

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