xmir_screen_for_each_damaged_window iterates through all outputs on every frame (including unused ones)

Bug #1220629 reported by Daniel van Vugt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xorg-server (Ubuntu)
Won't Fix
Low
Unassigned

Bug Description

xmir_screen_for_each_damaged_window iterates through all outputs (including unused ones), on every frame.

I thought it was a bit odd when debugging xmir_screen_for_each_damaged_window that it iterated through 6-8 different xmir_window's. I only have two outputs plugged in. The number actually grew over time (with display config changes?).

I think we should avoid iterating (or even creating) unused xmir_windows. In the very least it's inefficient to process all the damage reports more times than necessary.

Furthermore, I suspect the unused xmir_windows are accumulating damage that never gets emptied, which is probably bad.

tags: added: performance
tags: added: multimonitor
Changed in xmir:
importance: Undecided → Medium
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Dropping to Low importance. I haven't seen this cause any issues or have any noticeable performance impact.

Changed in xmir:
importance: Medium → Low
Changed in xorg-server (Ubuntu):
importance: Undecided → Low
no longer affects: xmir
tags: added: xmir
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

XMir 1.0 (the old Xorg extension) is now deprecated and is not being maintained or fixed. It is replaced by the new 'Xmir' binary (package 'xmir') introduced in Ubuntu 15.10 wily.

Changed in xorg-server (Ubuntu):
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.