Navigation: Scripting Reference Manual > Functions & Subroutines > GetLiveRayCount

 

GetLiveRayCount

 

Contact Us: fredsupport@photonengr.com

 

Description

Returns the number of "Live" rays in the main ray buffer.  Depending on the number of rays traced, it may be necessary to dimension ray index and ray counter variables as data type Huge_ instead of Long.  Please see Multi-threaded Raytracing for more information.

 

Syntax

count = GetLiveRayCount()

 

Parameters

count (Long or Huge_)

Number of "Live" rays in ray buffer.

 

Remarks

Returns the number of "Live" rays in the main ray buffer. See Multi-threaded Raytrace for a detailed explanation of the meaning of a "Live" ray. This attribute is related to the allocation of rays to different CPUs during multi-threaded raytracing and their subsequent splitting.

 

See Also

IsRayLive

GetAuxRayBufferLiveRayCount

GetRayBufferLiveRayCount

Multi-threaded Raytrace

 

 

 

 

 

Copyright © Photon Engineering, LLC