Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Let us know your feedback about the Global Illumination changes in the 2023.2 beta.
    Dismiss Notice
  3. Dismiss Notice

Question About data transfer and parsing

Discussion in 'Unity Render Streaming' started by wechat_os_Qy02O8KF-s1NNL90pTlxkQhxg, Jun 29, 2023.

  1. wechat_os_Qy02O8KF-s1NNL90pTlxkQhxg

    wechat_os_Qy02O8KF-s1NNL90pTlxkQhxg

    Joined:
    Mar 23, 2023
    Posts:
    53
    When receiving Web data through RTCDataChannel's OnMessage, is the transmission and parsing of this data carried out in multiple threads? If I use this channel to transmit high-frequency and large data packets, do I need to write a child thread to parse it?
     
  2. kazuki_unity729

    kazuki_unity729

    Unity Technologies

    Joined:
    Aug 2, 2018
    Posts:
    762
    I think that it depends on the data size. What size of data are you using?
     
  3. wechat_os_Qy02O8KF-s1NNL90pTlxkQhxg

    wechat_os_Qy02O8KF-s1NNL90pTlxkQhxg

    Joined:
    Mar 23, 2023
    Posts:
    53
    • A large number of high frequency vehicle trajectory data
     
  4. kazuki_unity729

    kazuki_unity729

    Unity Technologies

    Joined:
    Aug 2, 2018
    Posts:
    762
    I can't answer accurately because there are no knowledge, but I think there is no problem to use it on the main thread.