Почему при выводе скрина такая большая загрузка ЦП?
CODE:int Screen[4000][4000];
screen(#Screen[0][0], 0, 0, 1920, 1080, -1);
createdialog(0);
showdialog(0, "Screen", 0, 0, 1920, 1080, 4, 1);
//Загрузка ЦП 20-22%
visualwindow(formatiw(gethwnd(0)), 0, 0, 0, imagewidth(#Screen[0][0]), imageheight(#Screen[0][0]), 0, 0, 100, #Screen[0][0]);
//Загрузка ЦП 4-6%
//visualwindow(formatiw(gethwnd(0)), 0, 0, 0, 1920, 1080, 0, 0, 100, -1);
loop()sleep(50);
End:;
function getmessage(0, WM_CLOSE)
{
disablevisualwindow(0);
destroydialog(0);
goto global End;
} |