Quote:
Originally Posted by Justin
With no (or few) events being returned the difference will be negligible. If returning 10,000 unchanged events it should be measurable.
|
Ah ok, I misunderstood. I thought it would also improve the case where no events are returned. (in following defer cycles etc.)
Quote:
Originally Posted by Justin
If no (or few) events are being returned, what you're probably measuring is the time it takes to acquire a lock. I suppose in this case it's not strictly necessary to take the lock.
|
Ok, that makes sense. Would be nice if the lock in this case could be avoided, but don't bother if it's non-trivial. In the past few days I tried minimizing idle CPU usage of my background scripts. Apparently MIDI_GetRecentInputEvent doesn't even hold a candle to reaper.GetMousePosition (which most of my scripts also use).
Here's Lil Chordbox idle CPU usage:
Ya know... that age old thing about optimizations...