Hi Guys,
we are working on a WebPlayer Project, which uses a Flash Client for some 2D GUI stuff too complex to rebuild in unity.
We recently completed some code we need to transfer some data between flash and unity. And by some I mean literaly several hundreds of kilobytes. This however is results in unacceptable delays.
One Example we measured:
Flash => JS => Unity: 129kb/sec
Flash => JS => Flash: 1530kb/sec
which means somehow the Javascript - External interface of Unity seems to be veery slow.
My Question is:
- Is this a known issue?
- If not will this be fixed?
- Are we doing something wrong? Can you reproduce this?
This has nothing to do with “intended”.
This is the consequence of data conversion from outer world to managed (independent which language) , which is what happens here.
Also function calling from js → unity (independent which language) uses send message which has another performance impact.
The communication is there to inform Unity on user interactions on the website, for example to make it switch scenes etc.
Its in no way for realtime data transmission in any form, for that talk through WWW and alike.
so to answer your questions:
Why: see above
Fixed: there is nothing broken
Wrong: nothing wrong and nothing you can do about it instead of using it for what it is meant isntead of something for which its totally not suited