Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small delay to launch cosmic-workspace #59

Open
wiiznokes opened this issue Jul 2, 2024 · 6 comments
Open

Small delay to launch cosmic-workspace #59

wiiznokes opened this issue Jul 2, 2024 · 6 comments

Comments

@wiiznokes
Copy link
Contributor

I would say half of the time, there is a small delay to open the workspace overview (~300ms ig).

@wiiznokes
Copy link
Contributor Author

It seems to happens when this lines are logged:

juil. 02 21:26:36.678443 fedasus cosmic-workspaces[169388]: Allocated atlas entry: Fragmented { size: Size { width: 4032, height: 3024 }, fragments: [Fragment { position: (0, 0), allocation: Full { layer: 0 } }, Fragment { position: (2048, 0), allocation: Partial { layer: 1, region: Region { id: AllocId(2), rectangle: Box2D((0, 0), (1984, 2048)) } } }, Fragment { position: (0, 2048), allocation: Partial { layer: 2, region: Region { id: AllocId(0), rectangle: Box2D((0, 0), (2048, 976)) } } }, Fragment { position: (2048, 2048), allocation: Partial { layer: 2, region: Region { id: AllocId(3), rectangle: Box2D((0, 976), (1984, 1952)) } } }] }
juil. 02 21:26:36.770400 fedasus cosmic-workspaces[169388]: Current atlas: Atlas { texture: Texture { context: ContextWgpuCore { type: "Native" }, id: ObjectId { id: Some(2305843013508661252), global_id: Some(2305843013508661252) }, data: Any { .. }, owned: true, descriptor: TextureDescriptor { label: None, size: (2048, 2048, 3), mip_level_count: 1, sample_count: 1, dimension: D2, format: Rgba8Unorm, usage: TextureUsages(COPY_SRC | COPY_DST | TEXTURE_BINDING), view_formats: [] } }, texture_view: TextureView { context: ContextWgpuCore { type: "Native" }, id: ObjectId { id: Some(2305843013508661252), global_id: Some(2305843013508661252) }, data: Any { .. } }, layers: [Full, Busy(Allocator), Busy(Allocator)] }

It seems that sometime, the buffer is not deallocated, ei, this lines does not show


juil. 02 21:26:35.783537 fedasus cosmic-workspaces[169388]: Removing atlas entry: Fragmented { size: Size { width: 4032, height: 3024 }, fragments: [Fragment { position: (0, 0), allocation: Full { layer: 0 } }, Fragment { position: (2048, 0), allocation: Partial { layer: 1, region: Region { id: AllocId(2), rectangle: Box2D((0, 0), (1984, 2048)) } } }, Fragment { position: (0, 2048), allocation: Partial { layer: 2, region: Region { id: AllocId(0), rectangle: Box2D((0, 0), (2048, 976)) } } }, Fragment { position: (2048, 2048), allocation: Partial { layer: 2, region: Region { id: AllocId(3), rectangle: Box2D((0, 976), (1984, 1952)) } } }] }
juil. 02 21:26:35.783543 fedasus cosmic-workspaces[169388]: Deallocating atlas: Full { layer: 0 }
juil. 02 21:26:35.783549 fedasus cosmic-workspaces[169388]: Deallocating atlas: Partial { layer: 1, region: Region { id: AllocId(2), rectangle: Box2D((0, 0), (1984, 2048)) } }
juil. 02 21:26:35.783554 fedasus cosmic-workspaces[169388]: Deallocating atlas: Partial { layer: 2, region: Region { id: AllocId(0), rectangle: Box2D((0, 0), (2048, 976)) } }
juil. 02 21:26:35.783559 fedasus cosmic-workspaces[169388]: Deallocating atlas: Partial { layer: 2, region: Region { id: AllocId(3), rectangle: Box2D((0, 976), (1984, 1952)) } }

@ids1024
Copy link
Member

ids1024 commented Jul 2, 2024

Yeah, showing the background image seems to be contributing to the opening time for cosmic-workspaces.

@Drakulix
Copy link
Member

Drakulix commented Jul 4, 2024

Yeah, showing the background image seems to be contributing to the opening time for cosmic-workspaces.

I still think we should just make cosmic-comp hide everything but the background, when rendering the overview. We adjust rendering for it anyway.

@ids1024
Copy link
Member

ids1024 commented Jul 4, 2024

Yeah. Another special case like that in the compositor is probably the best solution, at least for now.

@ids1024
Copy link
Member

ids1024 commented Jul 16, 2024

This is improved with 686f4e7 (pop-os/cosmic-comp#609 is required for this to work properly).

It still isn't entirely instantaneous, which should be possible, so I think the issue can stay open for now.

@hgaiser
Copy link

hgaiser commented Oct 30, 2024

Launching cosmic-workspaces shows the background quite quickly now (this wasn't the case before 686f4e7 AFAIK). However the workspaces and the applications show up with a noticeable delay (I would estimate roughly 0.5s-1.0s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants