docs.unity3d.com
    Show / Hide Table of Contents

    Method WithScheduleGranularity

    WithScheduleGranularity<TDescription>(TDescription, ScheduleGranularity)

    Specifies the the unit of work that will be processed by each worker thread. Must be used with ScheduleParallel.

    Declaration
    public static TDescription WithScheduleGranularity<TDescription>(this TDescription description, ScheduleGranularity granularity)
        where TDescription : ILambdaJobDescription
    Parameters
    Type Name Description
    TDescription description
    ScheduleGranularity granularity

    If Chunk is passed (the safe default), work is distributed at the level of whole chunks. This can lead to poor load balancing in cases where the number of chunks being processed is low (fewer than the number of available worker threads), and the cost to process each entity is high. In these cases, pass Entity to distribute work at the level of individual entities.

    Returns
    Type Description
    TDescription
    Type Parameters
    Name Description
    TDescription
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023