- Home /
ReaderWriterLock causing stutter (Move.Me server)
Hello I'm running into an issue in my server app where the main thread gets stuck every five to ten seconds (pretty evenly) due to ReaderWriterLock and Monitor.Wait() (see attached screenshot from the deep profiler). I am using the Move.Me wrapper scripts (http://wiki.etc.cmu.edu/unity3d/index.php/Sony_PlayStation_Move) for receiving data from a PS3 over network, processing it, and in turn sending it back to the client. The PS3 seems to want to work with a fixed update rate of 0.008 and I'm receiving data often enough for the position and orientation data to update smoothly on the screen, so I assume it shouldn't be buffering anything.
Is this something with Mono that just can't be avoided, or is there anything I can do about it? PSMoveClient shouldn't need to be edited for every project according to the plugin, so I'd rather not get my hands dirty with that. However it's bad enough to make the audio and update stutter noticeably in an otherwise smoothly running program.
Your answer
![](https://koobas.hobune.stream/wayback/20220613091047im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
TCP Problem 0 Answers
Mysterious stuttering! 'Unaccounted' 3 Answers
iOS profiling help 0 Answers