POV-Ray : Newsgroups : povray.general : Script language speed Server Time
7 Aug 2024 15:20:07 EDT (-0400)
  Script language speed (Message 41 to 42 of 42)  
<<< Previous 10 Messages Goto Initial 10 Messages
From:
Subject: Re: Script language speed
Date: 10 Nov 2001 17:34:01
Message: <3beda714.170951229@news.povray.org>
On Fri, 9 Nov 2001 00:09:05 -0800, "Ben Chambers" <bdc### [at] hotmailcom>
wrote:

>
>"Warp" <war### [at] tagpovrayorg> wrote in message
>news:3be69fc4@news.povray.org...
>>   Firstly, the main reason is that the POV-Ray scripting language is an
>> _interpreted_ language. This makes comparison with _compiled_ languages
>> (eg. C++) very unfair.
>
>Hmm... I wonder if we could make a POV-Ray "compiler"?  As in, it would
>parse your scene, and then create an executable which would render that
>scene (and that scene only) at a resolution specified on the command line?

Hmm, IIRC OORT did something like that. It's fairly straightforward to
call POV-Ray code directly for a hard-coded scene thus by-passing the
parser. OTOH the render speed would be identical and you would have to
add time for compile & link, thus no net gain.

/Erkki


Post a reply to this message

From: Ben Chambers
Subject: Re: Script language speed
Date: 12 Nov 2001 02:31:25
Message: <3bef7acd@news.povray.org>

news:3beda714.170951229@news.povray.org...
> >Hmm... I wonder if we could make a POV-Ray "compiler"?  As in, it would
> >parse your scene, and then create an executable which would render that
> >scene (and that scene only) at a resolution specified on the command
line?
>
> Hmm, IIRC OORT did something like that. It's fairly straightforward to
> call POV-Ray code directly for a hard-coded scene thus by-passing the
> parser. OTOH the render speed would be identical and you would have to
> add time for compile & link, thus no net gain.
>
> /Erkki

Well, probably not very practical, but you could probably throw in some
scene specific optimizations in there.  For instance, if you don't use
radiosity, you could just drop all of that code from the end compile.  You
could check reflections, and hardcode which objects will (and won't)
reflect.  Things like this.  Like I said, probably not worth it, and more
tongue in cheek than anything :)

...Chambers


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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