
The range is [0, JobsUtility.ThreadIndexCount). When multiple threads are working on a parallel job at once, no two threads will have the same index. As such, this value is useful for allocating buffers which should be subdivided evenly between job workers since JobsUtility.ThreadIndex and NativeSetThreadIndexAttribute will never return a value greater than JobsUtility.ThreadIndexCount.Ĭore: Added: JobsUtility.ThreadIndex returns the index for the current thread when executing a job, otherwise 0. Plus temporary workers the job system will ever use.

JobsUtility.ThreadIndexCount reflects the maximum number of job worker threads However, since arbitrary threads can execute jobs via work stealing we allocate extra workers which act as temporary job worker threads. The job system will create a number of job worker threads that will be no greater than the number of logical CPU cores for the platform. Stack Traces are only available in the Unity Editor and development builds.Ĭore: Added: JobsUtility.ThreadIndexCount returns the maximum number of job workers that can work on a job at the same time.

can be Disabled, Enabled, or EnabledWithStackTrace. Player: Added -native-leak-detection command line argument to Unity Editor and standalone players. IOS: IOS/tvOS launch screen now is shown only by OS, and is not shown again by Unity itself. Graphics: Added BatchCullingContext.cullingFlags to specify whether lightmapped shadow casters should be culled for this view.Īpple TV: TvOS now uses launch screen storyboard.XR SRP: The Scene View flickers when hovering over it with the cursor Universal RP: Flickering orbs appear when using RenderTargetHandle Texture: Crash on Sprite::Transfer when building the project

Scene Management: Crash on Transform::CheckStructure when manually opening a scene RP Foundation: Crash on ScriptableRenderLoopJob when machine is left idle while the Editor is in Play mode RP Foundation: "Resources.FindObjectsOfTypeAll(typeof(Material)).Length" increases every time when entering/exiting Play Mode Metal: Framerate drops below 120fps when tapping the screen in a near-empty scene on iPhone 13 Pro Linux: Crash on "_sigaction" when Vulkan is set as default Graphics API IOS: Rendering freezes when the orientation is changed Build Systems: "wasm-ld.exe" is not terminated when canceling a WebGL Build during the "Linking build.js (wasm)" phaseĬamera: “targetDisplay” doesn’t change the camera’s “Target Display” setting when called from the scriptĭirectX12: GPU memory leaks when Renderer.rayTracingMode is set to .DynamicGeometryĭirectX12: Editor freezes when saving prefab changes in Play Mode if “VSync” is enabledįrameDebugger: Frame Debugger VRAM memory leak
