stable-diffusion.cpp
stable-diffusion.cpp copied to clipboard
Set low priority to process
with low priority you can free use you PC even with 100% CPU load by SD
This is something that you'd want your OS to handle, either by adjusting the process "niceness" on POSIX with 'nice' or 'renice' if it's already running. If you're on Windows you can supposedly do something similar with the 'START' command.
looks like on windows
#include <windows.h>
SetPriorityClass( GetCurrentProcess(), IDLE_PRIORITY_CLASS);
is enough but i not test it in real software yet