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

DimensionalThreading not able to assign threads above number of CPU cores #80

Open
Krullin opened this issue Nov 21, 2022 · 1 comment

Comments

@Krullin
Copy link

Krullin commented Nov 21, 2022

Hi, feel free to close/delete this if this is just me misunderstanding, but i don't know how else to ask this other than creating this Issue.

I have 4 cores available to me on my server, each with 2 threads, so that should give me up to 8 threads i can assign for Dimensional threading. However, if i try to assign any more than 4 threads using the "/gamerule dimthread_thread_count" the console tells me "Info: Integer must not be more than 4"

I tried this on a different server where i have 16 threads available, and then the integer is limited to 8 (number of cores).

I don't know if this something I'm doing wrong, if the server providers are limiting the cores i can actually access (server.pro for the 4 cores, ScalaCube for the 8 cores), if the command isn't assigning threads but cores, or if it's something else.

Again, I didn't know how else to ask and i didn't find any clarification in the DimThread description. Apologies for the inconvenience.

@CaveNightingale
Copy link

Simply replace Runtime.getRuntime().availableProcessors() with the maximum value you want, such as 8.

.setBounds(1, Runtime.getRuntime().availableProcessors()).setCallback(DimThread.MANAGER::setThreadCount).build();

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

2 participants