-
-
Notifications
You must be signed in to change notification settings - Fork 21k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wierd particle state after reset the process material in GPUParticle2D #87178
Comments
I'm seeing the same thing after testing #87123 as well. It looks like (un)commenting the USERDATA1 variable will constantly trigger a different glitch. It also happens with the other USERDATA variables for me. Closing and reopening the project seems to fix the issue, so I don't think the repro project in the OP will be of much use (also similar to #87123). My guess would be that memory isn't being allocated for USERDATA variables until the initial shader compilation if it does contain that variable, and USERDATA overwrites other particle variables in memory in all other cases. [edit] Changing the Also of note, each line you see in the screenshot in OP is a separate particle, as can be determined by the updated draw order. So it seems different portions of memory are being written to for each separate particle. |
Tested versions
Godot v4.3.dev (89cc635)
System information
Windows 10.0.22621 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3060 Ti (NVIDIA; 31.0.15.4601) - 12th Gen Intel(R) Core(TM) i7-12700F (20 Threads)
Issue description
When trying to debug #87123, I sometimes notice that after reset the process material, the particle will go crazy like below:
give it the shader for the first time might looks like this:
I admit the shader here is not that valid, but it does look like that some state is not inited well. And even the shader is not good, reset it is supposed to give the correct ( normal ) result.
See the video below, sometimes I can get the wierd result at the first try:
Test.tscn.-.min-repro-11-25-23.-.Godot.Engine.2024-01-14.23-57-08.mp4
Steps to reproduce
Minimal reproduction project (MRP)
GPUParticle2D.zip
The text was updated successfully, but these errors were encountered: