Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

Add option to automatically decide amount of Khamake processes #51

Merged
merged 1 commit into from
Sep 28, 2022

Conversation

MoritzBrueckner
Copy link
Contributor

@MoritzBrueckner MoritzBrueckner commented Sep 23, 2022

Requires Kode/khamake#262.

This PR adds an option to the user preferences that lets Khamake choose the number of processes automatically if enabled. It's off by default for now since I can only test it on my rather old 4 core computer where the auto setting defaults to 3 processes and is slightly slower than manually specifying more processes. If more tests are made by other users we can probably enable it by default.

Screenshot

@luboslenco I'm wondering whether it's possible to move parts of the preferences out of the SDK into the armory submodule so that we no longer need all the hasattr() checks (see armory3d/armory#2596) and we have less "separated" PRs. I'm not yet sure whether Blender allows to split the preferences into multiple files/classes while still saving them with one addon (we still need the SDK path setting to be in armory.py, for example), but if it turns out to be technically possible, what would you think of this?

@luboslenco
Copy link
Member

but if it turns out to be technically possible, what would you think of this?

Yes, definitely!

@MoritzBrueckner MoritzBrueckner deleted the auto-khamake-threads branch September 28, 2022 19:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants