Klaus Schmidinger wrote: >> For VDR, the two if's in the inactivity shutdown should be swappable >> with no serious side effects, see attached diff. All the calls do >> noting important, except the cCutter::Active() call, and this one is >> called often enough in other situations. But even with this patch, an >> non-interactive idle VDR waiting for shutdown will call this very >> frequently. > > I don't really think this will improve things very much. It will at least stop calling Active() when VDR is running normally, and is far away from automatic shutdown. > What about making cPluginManager::Active() remember the last state of > plugin activity, and, if Prompt is NULL, only call the individual plugins' > Active() functions if, say, one minute has passed since the last check? Sounds ok to me. One minute is close enough to avoid an idle machine running on, and not too often so a plugin can do more complex checks, for example call an external script to search for activity. Cheers, Udo