POV-Ray : Newsgroups : povray.beta-test : thread count rendertimes unpredictable? : Re: thread count rendertimes unpredictable? Server Time
28 Jul 2024 12:33:33 EDT (-0400)
  Re: thread count rendertimes unpredictable?  
From: Bob Hughes
Date: 19 Jan 2009 04:36:31
Message: <4974499f$1@news.povray.org>
"Chambers" <ben### [at] pacificwebguycom> wrote in message 
news:9E363925719942B18BA14BF08FF37968@HomePC...
> Could you post what times you get with specific scenes?


I hadn't checked any of the sample files before posting until now so I gave 
the scenes\advanced\benchmark.pov a try and found the render times to be 
like I would expect. Using 1 thread was slower at 26 minutes, while 2 
threads improves that to about 14 minutes; both SSE2's I tested it in, while 
non-SSE2 is similar yet slower overall of course.

A curiosity to me was how photons are reported, saying 5 threads, although I 
understand this isn't finished yet but since the file had it on I left it 
as-is. I didn't use radiosity at all. Here's one of the render time stats:

  Photon Time:      0 hours 11 minutes 11 seconds (671.876 seconds)
              using 5 thread(s) with 1028.810 CPU-seconds total
  Radiosity Time:   No radiosity
  Trace Time:       0 hours 13 minutes 31 seconds (811.406 seconds)
              using 2 thread(s) with 1578.745 CPU-seconds total

Looking more at the stats I've realized something is probably wrong about 
Max Level, it was saying the output image resolution (same width, height 
numbers). Don't know if that's just incorrect or really happening in the 
render but it's only when setting Work_Threads=2 not =1, only the 
*radiosity-changed* executable does this-- not the original beta 30.

If I find an included scene file which causes the huge render-time 
difference I will post back about it.

For at least one of my own files (actually a pov with collection of .inc's) 
the render-time differences can be incredible, at the same output image 
resolution just over 12 minutes using 1 thread in pvengine-sse2.exe, and 
about 96 minutes using 2 threads in pvengine32-sse2.exe (pvengine-sse2.exe 
beta 30 was 6 minutes faster, or 90 minutes, for whatever reason).

My guess was perhaps the splines causing trouble but since I haven't a clue 
how thread count can affect object types being rendered (rather vice versa) 
I can't really say what's going on. I don't understand the processes 
involved.

Here's stats when rendering one of my own pov files:
_____________________________________________________________________________
begin stats for pvengine-sse2 beta 30 1 thread
----------------------------------------------------------------------------
Finite Objects:         7474
Infinite Objects:          0
Light Sources:             2
Total:                  7476

Parser Time
  Parse Time:       0 hours  0 minutes  0 seconds (0.000 seconds)
              using 1 thread(s) with 1.934 CPU-seconds total
  Bounding Time:    0 hours  0 minutes  0 seconds (0.047 seconds)
              using 1 thread(s) with 0.046 CPU-seconds total

Render Options
  Quality:  9
  Bounding boxes.......On   Bounding threshold: 3
  Antialiasing.........On  (Method 1, Threshold 0.400, Depth 2, Jitter Off)

Render Statistics
Image Resolution 1600 x 1200

Pixels:          2040800   Samples:         4629652   Smpls/Pxl: 2.27
Rays:           12772602   Saved:           1587744   Max Level: 9/9

Ray->Shape Intersection          Tests       Succeeded  Percentage

Blob                            200144           35757     17.87
Blob Component                  167655           84980     50.69
Blob Bound                      800576          167655     20.94
Box                             895707          888096     99.15
Cone/Cylinder                 10696292         9385215     87.74
CSG Intersection                 10395             132      1.27
CSG Union                       462067          174964     37.87
Polygon                         143850           62685     43.58
Sphere                          505290          382893     75.78
Sphere Sweep                  18753062          540509      2.88
Surface of Revolution           355109          187896     52.91
Surface of Rev. Bound           355109          291122     81.98
Torus                           190213          103812     54.58
Torus Bound                     190213          104002     54.68
True Type Font                  817186          213488     26.12
Clipping Object                 540887          478611     88.49
Bounding Box                2413335789       531789506     22.04

Function VM calls:          9498297

Roots tested:              18806406   eliminated:                 1119
Shadow Ray Tests:          10683037   Succeeded:                 47102
Shadow Cache Hits:            40562
Reflected Rays:              168931   Total Internal:             8718
Refracted Rays:              160895
Transmitted Rays:           5772324

Smallest Alloc:                  12 bytes
Largest  Alloc:                  12 bytes
Total Alloc calls:                1         Free calls:       56312792

Render Time:
  Photon Time:      No photons
  Radiosity Time:   No radiosity
  Trace Time:       0 hours 12 minutes 21 seconds (741.718 seconds)
              using 1 thread(s) with 739.631 CPU-seconds total
POV-Ray finished
-
CPU time used: kernel 1.40 seconds, user 744.23 seconds, total 745.64 
seconds.
Elapsed time 746.60 seconds.
Render averaged 2571.65 PPS (2574.98 PPS CPU time) over 1920000 pixels.
----------------------------------------------------------------------------
end stats for pvengine-sse2 beta 30 1 thread
_____________________________________________________________________________
begin stats for pvengine32-sse2 (radiosity-changed) beta 30 2 threads
----------------------------------------------------------------------------

Finite Objects:         7474
Infinite Objects:          0
Light Sources:             2
Total:                  7476

Parser Time
  Parse Time:       0 hours  0 minutes  0 seconds (0.000 seconds)
              using 1 thread(s) with 1.591 CPU-seconds total
  Bounding Time:    0 hours  0 minutes  0 seconds (0.047 seconds)
              using 1 thread(s) with 0.046 CPU-seconds total

Render Options
  Quality:  9
  Bounding boxes.......On   Bounding threshold: 3
  Antialiasing.........On  (Method 1, Threshold 0.400, Depth 2, Jitter Off)

Render Statistics
Image Resolution 1600 x 1200

Pixels:          2040800   Samples:         4629652   Smpls/Pxl: 2.27
Rays:           12772602   Saved:           1587744   Max Level: 1600/1200

Ray->Shape Intersection          Tests       Succeeded  Percentage

Blob                            200144           35757     17.87
Blob Component                  167655           84980     50.69
Blob Bound                      800576          167655     20.94
Box                             895707          888096     99.15
Cone/Cylinder                 10696292         9385215     87.74
CSG Intersection                 10395             132      1.27
CSG Union                       462067          174964     37.87
Polygon                         143850           62685     43.58
Sphere                          505290          382893     75.78
Sphere Sweep                  18753062          540509      2.88
Surface of Revolution           355109          187896     52.91
Surface of Rev. Bound           355109          291122     81.98
Torus                           190213          103812     54.58
Torus Bound                     190213          104002     54.68
True Type Font                  817132          213488     26.13
Clipping Object                 540887          478611     88.49
Bounding Box                2413335438       531789436     22.04

Function VM calls:          9498297

Roots tested:              18806406   eliminated:                 1119
Shadow Ray Tests:          10683037   Succeeded:                 47102
Shadow Cache Hits:            40563
Reflected Rays:              168931   Total Internal:             8718
Refracted Rays:              160895
Transmitted Rays:           5772324

Smallest Alloc:                  12 bytes
Largest  Alloc:                  12 bytes
Total Alloc calls:                2         Free calls:       56314983

Render Time:
  Photon Time:      No photons
  Radiosity Time:   No radiosity
  Trace Time:       1 hours 36 minutes 33 seconds (5793.391 seconds)
              using 2 thread(s) with 7003.306 CPU-seconds total
POV-Ray finished
-
CPU time used: kernel 267.56 seconds, user 6745.00 seconds, total 7012.56 
seconds.
Elapsed time 5799.85 seconds, CPU vs elapsed time ratio 1.21.
Render averaged 331.04 PPS (273.79 PPS CPU time) over 1920000 pixels.
----------------------------------------------------------------------------
end stats for pvengine32-sse2 (radiosity-changed) beta 30 2 threads


Post a reply to this message

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