Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Lag spikes with simple ropes
#5
Hi there,

I was unable to reproduce the spikes using your sample project. Tried on 3 different machines:
- PC (Windows 10, Corei7 4771, 3.5Ghz 8 cores)
- Mac Pro (mid-2016)
- Mac Book Air (2014)

The profiler looks very similar in all 3:
[Image: xz8gVzg.png]

Edit: Out of luck, I was able to reproduce the spikes in Windows by having Chrome open and playing a couple videos on the background:
[Image: gpUJ95y.png]

Obi spawns one thread less than the CPU's max thread count, up to a maximum of 7. Since Chrome is heavily multithreaded too, many logic threads could be fighting for CPU time, forcing Obi to wait for its threads to be given some CPU time. This would of course happen with any other multithreaded application, not just Chrome. Unfortunately there's not much we can do to prevent this, as cpu time must be shared among all threads running.
Reply


Messages In This Thread
Lag spikes with simple ropes - by monokel - 27-05-2020, 11:23 AM
RE: Lag spikes with simple ropes - by josemendez - 28-05-2020, 08:54 AM
RE: Lag spikes with simple ropes - by monokel - 28-05-2020, 09:10 AM
RE: Lag spikes with simple ropes - by josemendez - 28-05-2020, 10:53 AM
RE: Lag spikes with simple ropes - by josemendez - 29-05-2020, 11:16 AM