POV-Ray : Newsgroups : povray.binaries.images : A second high higher poly render : Re: A second high higher poly render Server Time
18 Oct 2021 17:12:52 EDT (-0400)
  Re: A second high higher poly render  
From: The Traveler
Date: 1 Oct 2021 15:55:00
Message: <web.615767484e431678dd31149be3dfee7c@news.povray.org>
Alain Martel <kua### [at] videotronca> wrote:
>
>
> > I observed using htop process viewer that Povray, at least in v3.7, uses only a
> > single core to read and write files. In a 6 core i5 processor only core 6 was at
> > 100%.
> >
> > Cheers.
> >
>
> The reason is very simple : Reading or writing a file can't benefit from
> the use of multiple threads. It's a purely iterative process that can't
> get split in several threads.
> The same hold true for parsing. Purely single thread.

Yes and no. At least in reading SSD drives, it's possible to load buffers in a
multi-threaded "pre-fetch" mode. The rationale being that the main thread can
then switch between buffers and block load them to memory instead of single
thread process doing both reading and writing. Or, as the buffers occupy known
addresses and have known sizes, can be chained sequentially for reading. The
programming to accomplish it isn't trivial but it is doable. Cheers.


Post a reply to this message

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