CPU and Graphics card can't work with large process cause their work with many process.
Lazarus solve this problem, it freeze trash process and give all resources to main process.
Lazarus use Windows API to control threads:
HANDLE hThreat = OpenThread(THREAD_SUSPEND_RESUME, false, te32.th32ThreadID);
if (hThreat != NULL) {
if (freeze == true) {
SuspendThread(hThreat);And force memory:
OpenProcess(PROCESS_SET_QUOTA | PROCESS_SET_INFORMATION, false, targetPID);
if (hProcess != NULL)
{SetProcessWorkingSetSize(hProcess, (SIZE_T)-1, (SIZE_T)-1);
}1. Put txt files to folder where will be LazarusUniversal.exe!!!!
2. The txt files must be save as ANSI or UTF - 16 LE
3. GreenList is List which will be freeze and than you can defrost it
1. Name of GreenList.txt
2. Name of WhiteList.txt
GreenList.txt
WhiteList.txt
browser.exe
msEdge.exe
Cyberpunk2077.exe
Metro2033.exe
To start press F8 Until appear a text "Program had started"
To stop press F12 Until appear a text "program had stoped"
To stop/resume GreenList press F9