DefaultEcs icon indicating copy to clipboard operation
DefaultEcs copied to clipboard

find out why ASystem runs like crap with multithreading on my phone (except when there is a debugger)

Open Doraku opened this issue 5 years ago • 5 comments

Seem to be related to DVFS

Doraku avatar Aug 11 '18 15:08 Doraku

playing around with SpinCount of the WorkerBarrier ManualResetEventSlim did not change anything.

Doraku avatar Feb 04 '19 19:02 Doraku

have you found root cause? I may look into in some time at future.

dzmitry-lahoda avatar Aug 09 '19 13:08 dzmitry-lahoda

what are steps for repro?

dzmitry-lahoda avatar Aug 09 '19 13:08 dzmitry-lahoda

guess, there is to much parallelism(up to for loop like spins)? may some primitives on mono are badly written?

dzmitry-lahoda avatar Aug 09 '19 13:08 dzmitry-lahoda

I only observe this problem when running on my phone or my surface go when they are unplugged. I should be able to create a small project showing this when I get back in a couple of day if you are interested. The tasks take forever to execute while there is almost nothing to process, as if the mobile cpu were severly underclocked (but ut run fine in mono thread). Using thread or thread pool didn't change anything.

Doraku avatar Aug 10 '19 08:08 Doraku