Jack
2010-04-22 10:48:43 UTC
I just established 2 threads running concurrently in my application, and
they run nicely...
In my design, they should run at different speeds because of their specific
types, say human and vehicle.
I put
pathfind(...)
Sleep(500);
when they finish an iteration.
The threads seem to be running at the same speed which isn't what I
desire...
The pathfind function only differs by a fraction of a second... so that
really doesn't matter.
Is the Sleep API the only way to go to reflect the speed of the targeted
object?
Thanks
Jack
they run nicely...
In my design, they should run at different speeds because of their specific
types, say human and vehicle.
I put
pathfind(...)
Sleep(500);
when they finish an iteration.
The threads seem to be running at the same speed which isn't what I
desire...
The pathfind function only differs by a fraction of a second... so that
really doesn't matter.
Is the Sleep API the only way to go to reflect the speed of the targeted
object?
Thanks
Jack