MechWarrior99
How to safely access parameters from Task (Porting from Unity IJob)
Ahh I see, thank you. I will keep
.ConfigureAwait()
in mind, wasn't aware of it!
I was aware of LongRunning, but I don't think it applies in this case as I want the the generation to happen in 'real time' (less than ~100ms) as the user changes properties in the UI.
So if it is taking longer than that, I need to do some more optimization haha.36 replies
How to safely access parameters from Task (Porting from Unity IJob)
Appreciate the info! And yeah, as Burrito said, this is not in Unity, just familiar with the Unity Jobs system and way of doing things. And trying to understand how you would do the same in a plain C# app.
36 replies
How to safely access parameters from Task (Porting from Unity IJob)
Jobs gets around it by only allowing structs, and putting it all in the struct doing the executing. Which is what I was thinking of doing (or making a clone of
SomeClass
and passing it)36 replies
How to safely access parameters from Task (Porting from Unity IJob)
Yeah I figured that is the case. But I am not sure what is the 'right' way then since the values can change from the UI during generation. Accessing them directly would be a no go, right?
36 replies