POV-Ray : Newsgroups : povray.general : POV-Ray and physical simulation Server Time
4 Aug 2024 02:21:05 EDT (-0400)
  POV-Ray and physical simulation (Message 11 to 12 of 12)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Christoph Hormann
Subject: Re: POV-Ray and physical simulation
Date: 22 Sep 2003 17:12:02
Message: <0v4441-tnf.ln1@triton.schunter.etc.tu-bs.de>
ingo wrote:
> 
> Regarding speed, when I made my param.inc file I also did it in python. 
> The original param.inc only used macros and was quite a bit slower that 
> its Python equivalent. After rewriting param.inc to using functions the 
> parse time of both seemed the same at first sight, but SDL was actually 
> faster. In the same time it took to run the python program, SDL did the 
> same calculations and also parsed a million triangles. The resulting 
> file generated by python still had to be read and parsed by POV-Ray 
> then. So SDL isn't that bad in all cases.

I always had the impression python is quite slow.  The first HTML 
preprocessor i used for my website (ahts) was implemented in python and 
it was incredibly slow.  I currently use your python tool for formatting 
pov code in HTML and i also can see the slowdown on pages with many code 
blocks.

Not directly related but i think param.inc would be a nice feature to be 
implemented internally - it would be quite similar to the bicubic patch 
object which is also represented as a mesh.

Christoph

-- 
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 2 Sep. 2003 _____./\/^>_*_<^\/\.______


Post a reply to this message

From: ingo
Subject: Re: POV-Ray and physical simulation
Date: 23 Sep 2003 02:00:07
Message: <Xns93FF5164C7EE7seed7@netplex.aussie.org>
in news:0v4### [at] tritonschunteretctu-bsde Christoph Hormann 
wrote:

> I always had the impression python is quite slow. 

For what it's worth, a nice comparisin of a few langauages:
http://www.bagley.org/~doug/shootout/
http://www.bagley.org/~doug/shootout/craps.shtml
How would SDL score?

Ingo


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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