- Home /
using threads
im using www class to read data from web multi times but it freeze my player . i think it is because unity just use single thread . is there any way to put the www on any other thread ? i am using java .
Could you show us your code? WWW can cause freeze if it is used incorrectly.
hey thanx for reply .my code is something like that : var www : WWW = new WWW("the url"); yield www; some process on www.text get the output and put it in an array
then using this array in other process.
These two lines are perfectly ok, and should not cause any freeze. The problem must be elsewhere, but it's impossible to say where without knowing your code.
You wrote you're doing some process on www.text
- maybe this is the cause? Try to log DateTime.Now
before and after the processing, and see how long it took to complete.
$$anonymous$$gestion is: Post your code please so we can help you :)
Your answer
Follow this Question
Related Questions
When I place a breakpoint in my code, it crashes Unity Editor 1 Answer
Thread-Safety and Debug.Log 2 Answers
WWW and threads 1 Answer
separate www from the main process 0 Answers
Threadpool using multiple Cores? 0 Answers