mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 05:27:20 +00:00
[host] nvfbc: optimize change detection loop
Before, we only break out of the current row when a change is detected, and all subsequent rows are still scanned. Now we break out of the entire loop. This should make change detection ever so slightly faster.
This commit is contained in:
parent
fd8f8b2b28
commit
501b270890
@ -305,9 +305,10 @@ static CaptureResult nvfbc_capture(void)
|
||||
if (this->diffMap[(y*w)+x])
|
||||
{
|
||||
changed = true;
|
||||
break;
|
||||
goto done;
|
||||
}
|
||||
|
||||
done:
|
||||
if (!changed)
|
||||
return CAPTURE_RESULT_TIMEOUT;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user