POV-Ray : Newsgroups : povray.programming : the possibility of POSIX compliant threads ? Server Time
3 Jul 2024 06:15:13 EDT (-0400)
  the possibility of POSIX compliant threads ? (Message 1 to 5 of 5)  
From: Dennis Clarke
Subject: the possibility of POSIX compliant threads ?
Date: 22 Apr 2003 01:06:01
Message: <Pine.GSO.4.53.0304220102400.3691@blastwave>
Dear POV fans :

    At great risk of being told to go back and read twelve threads ( no pun
 intended ) of discussion that are a year old, is there a possibility of
 a future POV-Ray release that has some multi-threading?  Possibly with a
 POSIX approach as opposed to something dependant upon Linux or Microsoft?

 Dennis


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: the possibility of POSIX compliant threads ?
Date: 22 Apr 2003 03:31:10
Message: <3ea4efbe$1@news.povray.org>
In article <Pine.GSO.4.53.0304220102400.3691@blastwave> , Dennis Clarke 
<dcl### [at] blastwaveorg>  wrote:

>     At great risk of being told to go back and read twelve threads ( no pun
>  intended ) of discussion that are a year old, is there a possibility of
>  a future POV-Ray release that has some multi-threading?

This question _really_ has been asked and _answered_ a ***million*** times
before.  So do what you said in the first line!

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: the possibility of POSIX compliant threads ?
Date: 22 Apr 2003 04:12:21
Message: <3ea4f965$1@news.povray.org>
In article <3ea4efbe$1@news.povray.org> , "Thorsten Froehlich" 
<tho### [at] trfde> wrote:

>>     At great risk of being told to go back and read twelve threads ( no pun
>>  intended ) of discussion that are a year old, is there a possibility of
>>  a future POV-Ray release that has some multi-threading?
>
> This question _really_ has been asked and _answered_ a ***million*** times
> before.  So do what you said in the first line!

I forgot, I could also say RTFM ;-)

"9.1.3.2 Can POV-Ray use multiple processors?"
<http://www.povray.org/documentation/view/309/>

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: Dennis Clarke
Subject: Re: the possibility of POSIX compliant threads ?
Date: 22 Apr 2003 15:34:50
Message: <Pine.GSO.4.53.0304221534110.5982@blastwave>
> This question _really_ has been asked and _answered_ a ***million*** times
> before.  So do what you said in the first line!


 I just knew that I'd get that !!   ;-)

    Dennis


Post a reply to this message

From: Wolfgang Wieser
Subject: Re: the possibility of POSIX compliant threads ?
Date: 23 Apr 2003 13:40:36
Message: <3ea6d013@news.povray.org>
Dennis Clarke wrote:
> [...]
> is there a possibility of
>  a future POV-Ray release that has some multi-threading?  Possibly with a
>  POSIX approach as opposed to something dependant upon Linux or Microsoft?
> 
Hmm... I have a crazy idea: If you need it, try and implement it. 

Using UNIX, the easiest way is probably a post-fork after parsing. 
Advantage: POVRay is not thread-save but as you use fork(), you get 
cloned separate processes. Use pipes between the tasks and change 
render.cpp (IMHO) so that each task only renders assigned image lines. 
Use backwards pipes to have the image data sent back. 

Time requirement: a day... or two. 

Won't support radiosity and photons will be done by master only, 
you may get trouble with continued tracing but if you just need more 
speed quickly...

It you are creating an animation, renderin frames in parallel instead 
of each frame in parallel is probably a better approach (less overhead). 
(RendView (<- ask freshmeat or google) can do that using UNIX/Linux.)

Cheers,
Wolfgang


Post a reply to this message

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