Commit 46635721 authored by Jeremy White's avatar Jeremy White Committed by Frediano Ziglio
Browse files

Don't update the fps calculation for internal messages.

There is no need to increase our CPU usage if we're going
to be largely responding to full screen painting requests
from a window manager such as mutter.
Acked-by: Frediano Ziglio's avatarFrediano Ziglio <>
parent 857e41b7
......@@ -369,7 +369,6 @@ static void *scanner_run(void *opaque)
scan_update_fps(scanner, 1);
if (r->type == PERIODIC_SCAN_REQUEST) {
......@@ -382,6 +381,8 @@ static void *scanner_run(void *opaque)
/* Remaining scan types affect a region of the screen */
scan_update_fps(scanner, 1);
scanner_remove_region(scanner, r);
handle_scan_report(scanner->session, r);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment