Closed NVentimiglia closed 6 years ago
Not sure what I can do about this
Ill do another pass this weekend see what I can find
The ring buffer is supposed to be single consumer-single producer; you've got 32 on the one buffer From the first paragraph of Readme.md
Only supports a single producer/single consumer.
I'd suggest you use https://github.com/disruptor-net/Disruptor-net if you want something more complex.
@NVentimiglia for a high-parallelism degree where you need multi-producer multi-consumer bounded queue you can use ConcurrentBuffer from NetStack. But be aware of CMPXCHG instruction scalability and measure stuff.
In my quest for benchmarks, I have blown up unity. In this instance, I passed in 32. Maybe not applicable to a client, but for a server. Similar tests going against the que and lock passed. this test pushed my CPU to 100, and locked up my machine (hard reset).