VRChat Instantiate Leaves Clones behind on every Transform Event.
complete
Oscar Casey
The Instantiate Node will create a Clone per transform edit that occurs on a spawned object. This is a problem once you need to make multiple transform edits on created objects.
Some complex system like this, which is dissecting Text data and applying all the necessary updates too the spawned object, can create upwards of 7 Unnecessary Clones. This scales drastically when this is only one out of roughly 400 spawns this system will have to eventually handle. Leaving me with at most, a theoretical 2800 extra objects those 400 would produce. All of which are doing nothing.
This demo(gyazo links) alone is 2 cycles of such system, from a Demo Chart which has only 27 notes in it.
Log In
Momo the Monster
complete
Momo the Monster
tracked
Momo the Monster
@oscar-casey-1- which SDK are you using? This was a known issue but was fixed a few releases ago. This graph works as expected for me, creating exactly 10 prefabs with random positions.
Oscar Casey
Momo the Monster: Version 2020.04.17.11.34
MomoTheMonster
Oscar Casey: can you update to the latest SDK and try my graph above? It works as expected for me with the latest SDK from https://vrchat.com/home/download
Oscar Casey
MomoTheMonster: New bug, these now apply to ALL subsequent present String arrays.
the first one should only contain H results, second >, third <, and last #.
This seems to be going through, and replacing setting every Array at index. This is failing the spawn script because now the first script is feeding the first Hit note with a Special note. And can not handle it. This seems to not effect the chain as it goes down. Because the random value for the Special notes "#" has always been consistently the right notes
MomoTheMonster
Oscar Casey: One bug per thread, please. How is the Instantiate working for you now? Were you able to use the graph I provieded?
Oscar Casey
Momo the Monster However, Reverting back and compiling just the Reader script. I can say that it can spawn the first note as many times as it wants, without creating clones. However it can not progress to the next note. (loading cycle) Presuming because this isnt firing properly. (second image)
Oscar Casey
MomoTheMonster: ie, It does indeed work now in the latest build. But I can't use the version because of the Array issue. that one is super critical and everything I have made will not function without it. Among other what seem to be particle issues too, add 2 particles just locked on playing. Didn't look into it tho, aswell as Note hit detection not functioning, presuming from String array issues, again did not look into it.