all: fetch current time only once per iteration
This commit is contained in:
parent
d8d6be1ef3
commit
bb9e6ba3b5
21 changed files with 99 additions and 97 deletions
|
|
@ -29,7 +29,6 @@ use {
|
|||
scale::Scale,
|
||||
state::State,
|
||||
text::{self, TextTexture},
|
||||
time::Time,
|
||||
tree::{
|
||||
walker::NodeVisitor, Direction, FindTreeResult, FindTreeUsecase, FoundNode, Node,
|
||||
NodeId, StackedNode, WorkspaceNode,
|
||||
|
|
@ -164,7 +163,7 @@ impl OutputNode {
|
|||
if self.screencopies.is_empty() {
|
||||
return;
|
||||
}
|
||||
let now = Time::now().unwrap();
|
||||
let now = self.state.now();
|
||||
for capture in self.screencopies.lock().drain_values() {
|
||||
let wl_buffer = match capture.buffer.take() {
|
||||
Some(b) => b,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue