Skip to content

Add and use ThreadPool #63

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

Merged
merged 9 commits into from
Nov 11, 2022
Merged

Add and use ThreadPool #63

merged 9 commits into from
Nov 11, 2022

Conversation

karnkaul
Copy link
Member

@karnkaul karnkaul commented Nov 10, 2022

Tested successfully using Sponza on Linux, Windows, Raspbian

- Remove now unused headers from scene.hpp.
- Move all loading logic into `Scene::Loader`.
- WIP: temp code with futures commented out.
- Use for loading scenes and decompressing images.
- Rename `Scene::Loader` to `Scene::GltfLoader`.
@karnkaul karnkaul force-pushed the karnage/thread-pool branch from 1a7011c to 28a8285 Compare November 10, 2022 07:44
@karnkaul

This comment was marked as resolved.

- More accurate status reporting.
- `ThreadPool`: Skip creating any threads if requested count or hardware concurrency is 0.
- `Engine`: special-case thread count being 0 or 1.
- Not seeing any issues without it, but best to assume WSI can interfere with device queues.
@Rinzii Rinzii requested review from Rinzii and removed request for Rinzii November 10, 2022 22:00
@karnkaul karnkaul marked this pull request as ready for review November 11, 2022 02:26
@karnkaul karnkaul merged commit 154c00f into main Nov 11, 2022
@karnkaul karnkaul deleted the karnage/thread-pool branch November 11, 2022 02:30
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

Successfully merging this pull request may close these issues.

1 participant