Search Issue Tracker

Won't Fix

Votes

0

Found in

2020.3.44f1

2021.3.17f1

2022.2.4f1

2023.1.0b1

2023.2.0a3

2023.3.0a3

Issue ID

UUM-29646

Regression

No

Compute buffer isn't updated after a few seconds when ComputeBuffer.GetData() is not used

-

Reproduction steps:
1. Open the “InteropUnityCUDA“ Project
2. Open the “Assets/Scenes/InteropSample.unity” Scene
3. Enter the Play Mode

Expected result: Particles in the middle of the screen do not stop
Actual result: Particles in the middle of the screen stop after a few seconds

Reproducible with: 2020.3.44f1, 2021.3.17f1, 2022.2.4f1, 2023.1.0b1, 2023.2.0a3

Reproduced with: Windows 10 22H2

Note: Uncomment line 42 of ParticleDrawer.cs and the particles will not freeze

  1. Resolution Note:

    It's a rare use case since the user is using custom plugin to modify the compute buffer data. Calling GetData() is a workaround to fix this as it inserts a memory barrier before reading back.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.