World/Udon Bugs & Feature Requests

Post about current World or Udon bugs feature requests. One item per post!
Non-constructive and off-topic posts will be moved or deleted.
[JP/EN] Request to feature our world in "Recommended for Beginners" / 「初めてにおすすめ!」へのワールド掲載のお願い
[English] Hello VRChat Team, I am writing to request the inclusion of our world in the Japanese "Recommended for Beginners" (初めてにおすすめ!) section. This world is a portal hub themed around traveling the world. It features a social lounge where players can chat with others, as well as a search system to find worlds categorized by country or specific situations. To ensure accessibility for a wide range of players, the world supports 4 languages (Japanese, English, Chinese, and Korean) and is cross-platform compatible with PC, Android, and iOS. If our world is selected, we plan to continue updating it regularly so that more users can enjoy virtual traveling in VR. Thank you very much for your time and consideration. World Details: Simple World Travel Portal Hub https://vrchat.com/home/world/wrld_2bfa68dc-dcc0-402a-9372-4cade61560b5 [日本語] VRChat運営チーム様 日本語版の「初めてにおすすめ!」に下記ワールドを掲載していただければと思い、ご連絡いたしました。 今回掲載をお願いしたいワールドは、世界旅行をテーマにしたポータルHUBとなっております。人と交流できるラウンジのほか、国ごとやシチュエーションに合わせてワールドを検索できる機能を備えています。 また、より多くのユーザーに楽しんでいただけるよう、日本語・英語・中国語・韓国語の4言語に対応しており、PC・Android・iOSの3プラットフォームすべてに対応しております。 ぜひ掲載いただけましたら、VRで旅行を楽しめるワールドとして今後も継続的にアップデートを行っていく予定ですので、ご検討いただけますと幸いです。 ワールド詳細: Simple World Travel Portal Hub https://vrchat.com/home/world/wrld_2bfa68dc-dcc0-402a-9372-4cade61560b5
1
·
Feature Requests
Expose Graphics.SetRandomWriteTarget
Note: This request is an excerpt of this document which contains some additional context and suggestions for a implementation. With the introduction of VRCGraphics.Blit and asynchronous readback feature, we are closer than ever before to having compute-shader-like capabilities in VRChat. However, we are still missing a critical component: Random writes! Random writes are the ability to write to any location in a block of memory, represented as an unordered access view (UAV) - in our case, these UAVs concretely are just RenderTextures. Random writes are hugely useful for making compute-shader-like code performant, and for many of the things that people tend to use real compute shaders for, they are downright required. This is due in part to the fact that they enable the use of atomic operations (example), which open up the doors to a bunch of algorithms that are infeasible or very tricky to implement without. We could get very close to approximating compute shaders today with the addition of one single piece of API: Graphics.SetRandomWriteTarget . With this API, you can do random writes in fragment shaders, which brings them much closer to compute shaders (see the initial link for example code). Here are some examples of possible use cases: Persistent data storage in a shader without jank. No need for GrabPass abuse, Custom Render Textures, or Camera loops. Just bind a RenderTexture and you are good to go. Communication between shaders without jank. Simply bind your render texture, and any fragment shader can now access it with both read and write access. Custom realtime GI systems. I implemented a system that places and integrates light probes dynamically based on camera depth using this piece of API. Better fluid simulations. In general, pretty much any kind of shader-based simulation can benefit from this. Either by being made simpler to implement, faster, or becoming feasible in the first place. Potentially speedup for AudioLink's DFT algorithm? Fast reduce-style operations such as summing or maxing over a domain. GPU based sorting.
2
·
Feature Requests
Manual Udon sync fails despite successful serialization
Manual synchronization stops updating synced variables on non-owner clients with certain field configurations, despite the owner reporting successful serialization. In the failing cases, the non-owner receives OnDeserialization, but the synced fields remain at their initial values. ENVIRONMENT ──────────────────────── Unity: 2022.3.22f1 VRChat Worlds SDK: 3.10.4 Tested with actual VRChat clients in the same instance STEPS TO REPRODUCE ──────────────────────── Attach the provided Float20SyncProbe and Double20SyncProbe scripts to separate GameObjects. Assign a separate TMP text display to each script. Upload the world and join the same instance with two players. The owner assigns new values and calls RequestSerialization() every 10 seconds. Compare the owner's values with the non-owner's values on the displays and in the logs. Both scripts use Manual synchronization. Only the owner writes the synced fields. Neither script uses FieldChangeCallback or calls Networking.SetOwner. Despite their filenames, the attached scripts currently contain: Float20SyncProbe: 27 synced floats. Double20SyncProbe: 14 synced doubles and 1 synced int. EXPECTED RESULT ──────────────────────── The non-owner's synced fields should update to match the owner's serialized values. ACTUAL RESULT ──────────────────────── With the failing configurations, the non-owner's fields remain at their initial values. Reducing the number of synced fields restores normal synchronization. TEST RESULTS ──────────────────────── All configurations below were tested without FieldChangeCallback. 2 doubles : Worked 2 floats : Worked 13 doubles : Worked 26 floats : Worked 14 doubles : Worked 27 floats : Failed 14 doubles + 1 int : Failed 20 doubles : Failed Earlier tests also reproduced the issue with 20 doubles using FieldChangeCallback, while 20 floats worked. Removing FieldChangeCallback did not resolve the double20 failure. The results suggest that the amount or layout of synced data may be involved, but the exact cause is unknown. POSSIBLY RELATED REPORTS ──────────────────────── A single UdonSharpBehavior with VRC Enable Persistence cannot store more than 108 bytes of the same variable type https://feedback.vrchat.com/persistence/p/a-single-udonsharpbehavior-with-vrc-enable-persistence-cannot-store-more-than-10 PlayerObject Persistence Fails to Respect Sync Mode https://feedback.vrchat.com/persistence/p/playerobject-persistence-fails-to-respect-sync-mode Those reports concern Persistence restoration. This issue occurs during ordinary owner-to-non-owner synchronization within the same instance. REPRODUCTION MATERIALS ──────────────────────── The attached scripts reproduce the issue independently and display each client's local synced values, receive count, consistency check, and serialization result.
1
·
Bug Reports
NoVariableSync can switch Manual-synced GameObjects to Continuous
In VRChat SDK 3.10.5, a NoVariableSync UdonSharp behaviour appears to cause other behaviours on the same GameObject to switch from Manual to Continuous synchronization. We encountered this issue in our world, “すーはー式ごいた”. The issue is now resolved in our world by explicitly setting all affected behaviours to Manual. This is a world-side workaround; we have not confirmed a fix in the SDK itself. The current version of our world therefore no longer reproduces the original issue. Affected setup Each game piece had three UdonSharp behaviours on the same GameObject: KomaScript : Manual ManualSync_suuhar : Manual UdonImageOwnerSpriteRenderer : NoVariableSync We observed piece object positions rolling back and a drop in FPS due to excessively frequent 'OnDeserialization()' calls. Diagnostic findings During approximately four minutes of testing, our logs recorded: Over 40,000 deserialization callbacks, including identical to the previous reception. Increasing send timestamps on all duplicate receptions. 62 explicit RequestSerialization() calls, but 1,856 OnPreSerialization() callbacks and 1,856 successful OnPostSerialization() callbacks. For one piece, two explicit serialization requests resulted in 58 serialization callbacks over approximately 14 seconds, with a median interval of 0.239 seconds. Changing UdonImageOwnerSpriteRenderer from NoVariableSync to Manual , so that all three behaviours explicitly use Manual, resolved the reported issue in our testing. Suggested reproduction Add a Manual-synced UdonSharp behaviour with synced variables to a GameObject. Add another UdonSharp behaviour marked NoVariableSync . A NoVariableSync behaviour should remain compatible with Manual behaviours on the same GameObject without switching them to Continuous. Environment World: すーはー式ごいた ( https://vrchat.com/home/world/wrld_a68a2924-fb2c-4860-adef-d687853e4b79/info ) Unity: 2022.3.22f1 VRChat Worlds SDK: 3.10.5 VRChat Build Number 1903 Currently, resolved in the world using SyncMode.Any
1
·
Bug Reports
·
tracked
Manual Udon serialization starts unsolicited 0-byte retry loop depending on same-GameObject UdonBehaviour composition/cardinality
Summary I found a reproducible Udon networking issue where a Manual-sync UdonBehaviour begins serialization without any user-code call to RequestSerialization(). The behaviour repeatedly receives: OnPreSerialization() OnPostSerialization(success = false, byteCount = 0) while the RequestSerialization call count remains 0. The issue depends on the composition/cardinality of UdonBehaviours attached to the same GameObject. Moving the additional UdonBehaviours to separate GameObjects prevents the issue in my isolated tests. Observed Behaviour With a Manual-sync Authority UdonBehaviour and certain additional UdonBehaviours on the same GameObject: RequestSerialization calls: 0 OnPreSerialization: repeatedly called OnPostSerialization: repeatedly called SerializationResult.success: false SerializationResult.byteCount: 0 I instrumented the first unsolicited serialization attempt. At FIRST OnPreSerialization: RequestSerialization count = 0 Networking.IsClogged = false Networking.IsNetworkSettled = true Networking.IsObjectReady = true local player is owner Authority SyncMethod = Manual Therefore the first observed serialization attempt was not preceded by an instrumented RequestSerialization call and did not begin while IsClogged was true. Minimal Cardinality Reproduction Using the same Authority behaviour and repeated copies of the SAME additional ProgramAsset on the SAME GameObject produced this pattern: Additional sibling UdonBehaviours: 0 -> QUIET 1 -> QUIET 2 -> unsolicited serialization loop 3 -> QUIET 4 -> unsolicited serialization loop 5 -> QUIET 6 -> unsolicited serialization loop 7 -> QUIET The positive cases repeatedly produced: Req = 0 Pre > 0 Post > 0 success = false byteCount = 0 This was not specific to one ProgramAsset. I reproduced the same cardinality pattern with another Udon ProgramAsset: 1 -> QUIET 2 -> unsolicited serialization loop 3 -> QUIET 4 -> unsolicited serialization loop I also reproduced it using distinct sibling ProgramAssets: 1 sibling -> QUIET 2 siblings -> unsolicited serialization loop 3 siblings -> QUIET 4 siblings -> unsolicited serialization loop I am NOT claiming that all even numbers of UdonBehaviours are generally broken. This is only the reproducible pattern observed under this isolated fixture configuration. Same-GameObject Isolation I then tested the registration/layout layer. Same GameObject: Authority + two relevant siblings -> unsolicited serialization loop Split GameObjects: Authority on GO-A Sibling 1 on GO-B Sibling 2 on GO-C -> QUIET Partial split: Authority + one sibling on GO-A second sibling on GO-B -> QUIET This suggests that same-GameObject Udon registration/composition is involved. Additional Cause-Layer Tests The problem was NOT reproduced simply by creating arbitrary zero-field behaviours. Controlled variants using inert zero-field Manual / Continuous behaviours remained QUIET in my tests. Changing between zero and one synced field also did not independently reproduce the issue. Therefore I currently classify this as a multifactor same-GameObject registration/composition issue rather than a bug in one specific script, NoVariableSync alone, synced-field count alone, or Manual sync alone. Expected Behaviour For a Manual-sync UdonBehaviour: If user code never calls RequestSerialization(), the owner should not enter a continuous OnPreSerialization / OnPostSerialization failure loop. In particular, I would not expect the addition/removal or placement of sibling UdonBehaviours on the same GameObject to cause unsolicited Manual serialization. Actual Behaviour Under the affected same-GameObject composition: RequestSerialization count remains 0, but serialization begins anyway. The first observed attempt occurs while: IsClogged = false IsNetworkSettled = true IsObjectReady = true It then repeatedly calls: OnPreSerialization() OnPostSerialization(false, 0) Important distinction VRChat documentation states that failed Manual serialization may be cached and retried when networking is clogged. That could explain repeated attempts AFTER a failed serialization event. However, in this reproduction the FIRST observed serialization attempt occurs with: RequestSerialization count = 0 IsClogged = false So the unresolved issue is what creates the initial Manual serialization event. Possible Related Existing Reports https://feedback.vrchat.com/persistence/p/persistence-does-not-restore-synced-variables-in-udon-components-other-than-the https://feedback.vrchat.com/bug-reports/p/pickup-events-may-not-be-called-when-multiple-udon-components-are-attached There are existing tracked reports involving multiple Udon components on the same GameObject, including: Persistence only restoring synced variables from the first Udon component Pickup events not reliably reaching multiple Udon components Those reports may or may not share the same underlying cause. This report describes a different failure mode involving the Manual serialization lifecycle. Impact This is particularly difficult to diagnose because: gameplay code does not call RequestSerialization the affected behaviour is Manual sync the behaviour may work or fail depending on same-GameObject composition changing hierarchy/component composition can make the issue disappear the resulting failed serialization loop can continue at a high rate In a modular Udon system, adding/removing otherwise unrelated sibling UdonBehaviours can therefore change networking behaviour unexpectedly. Workaround Separating the networking Authority UdonBehaviour and the additional UdonBehaviours onto different GameObjects prevents the reproduction in my isolated test. I consider this a workaround, not an explanation of the underlying behaviour. Reproduction Evidence I have retained: isolated minimal fixtures cardinality matrices ProgramAsset identities runtime SyncMethod fingerprints first-unsolicited-event instrumentation prefab/scene hashes for tested builds repeated runtime observations I can provide a stripped minimal Unity/VRChat reproduction project if useful.
1
·
Bug Reports
·
tracked
Load More
→