italomandara / CXPatcher

A patcher to upgrade Crossover dependencies and improve compatibility
GNU General Public License v3.0
831 stars 22 forks source link

Cpu core usage #152

Closed Coulin9 closed 7 months ago

Coulin9 commented 7 months ago

Is there a way to use more than 4 cpu cores? I have a 16 inch MacBook Pro with m2Max chip, it has 8 performance cores,but CrossOver only uses 4 of them。

截屏2023-11-12 12 50 55
Coulin9 commented 7 months ago

This is the test result without patch, using CrossOver23.6

CrossOver23 6 nopatch
italomandara commented 7 months ago

This is from a hack coming from Apple GPTK (and proton) that makes Crossover "believe" the CPU has only 4 cores, but in reality it's using all of them. This fixes crashes in some games.

Gcenx commented 7 months ago

You can override this by setting the following env WINENCPU to any number of CPU cores you’d like wine to see.

Here’s the info I’d gotten from Nat on this matter.

i'm not recalling specifically for the latter except some games can have trouble period scheduling their job-queues at all on more cores than they've ever seen before, and this can be exacerbated by existing wine macOS ESYNC/FSYNC which can sometimes bottleneck.

Coulin9 commented 7 months ago

You can override this by setting the following env WINENCPU to any number of CPU cores you’d like wine to see.

Here’s the info I’d gotten from Nat on this matter.

i'm not recalling specifically for the latter except some games can have trouble period scheduling their job-queues at all on more cores than they've ever seen before, and this can be exacerbated by existing wine macOS ESYNC/FSYNC which can sometimes bottleneck.

Thanks for your reply ,I'll try the env WINENCPU later

Gcenx commented 7 months ago

I’ve resolved this locally already but waiting for 23.7.0 to release.