kms: Rely more on offscreen rendering than memory copies
This commit is contained in:
parent
5d173a46a6
commit
d01148f0ee
1 changed files with 1 additions and 3 deletions
|
|
@ -885,8 +885,6 @@ impl Device {
|
|||
}
|
||||
}
|
||||
|
||||
const MAX_CPU_COPIES: usize = 3;
|
||||
|
||||
fn render_node_for_output(
|
||||
dh: &DisplayHandle,
|
||||
output: &Output,
|
||||
|
|
@ -910,7 +908,7 @@ fn render_node_for_output(
|
|||
None
|
||||
})
|
||||
.collect::<Vec<_>>();
|
||||
if nodes.contains(&target_node) || nodes.len() < MAX_CPU_COPIES {
|
||||
if nodes.contains(&target_node) || nodes.is_empty() {
|
||||
target_node
|
||||
} else {
|
||||
nodes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue