r57zone / DualShock4-emulator

DualShock4 emulation for Xbox controllers or keyboard and mouse / Эмуляция DualShock4 для Xbox контроллеров или клавиатуры и мыши
https://youtu.be/17hY1zTqoYQ
The Unlicense
198 stars 31 forks source link

Working great, but high CPU utliization #30

Closed theshadillac closed 2 years ago

theshadillac commented 2 years ago

This was just what i was looking for! working great, thanks!

But i am seeing really high CPU utilization with the emulator executable. is this normal?

r57zone commented 2 years ago

What processor do you using? You can increase the sleeptimeout up to 2-3 seconds and the load will be lower.

theshadillac commented 2 years ago

AMD 4500u.
where is the sleep timeout setting? in the config.ini.
are there any side affect of changing it to 2-3 seconds. BTW, this is first solution for this that works for me, so thank you so much

r57zone commented 2 years ago
[Xbox]
...
SleepTimeOut=1
...

[KeyboardMouse]
...
SleepTimeOut=1

input latency will increase, but not significantly.

r57zone commented 2 years ago

Will it help?

theshadillac commented 2 years ago

not much. I increased the timeout on the keyboard/mouse quite a bit since i have no physical keyboard or mouse attached. only a gamepad. the power usage only dropped from about 7w to 4-5w, so it is consuming tons of battery power, CPU only dropped from 33% to 28%.

theshadillac commented 2 years ago

could part of the issue be that i have no mouse and only the onscreen keyboard?

r57zone commented 2 years ago

So it looks like it has something to do with reading the gyroscope, now this can be disabled in the config file [Motion] Activate=0

theshadillac commented 2 years ago

that fixed it!! thanks!

i wonder if it is because i am using this device ,https://store.ayaneo.com/products/ayaneo-2021 and it uses the Bosch BMI160 gyro sensor instead

theshadillac commented 2 years ago

thanks!!!

theshadillac commented 2 years ago

FYI, i shared this github in the Ayaneo discord channel

r57zone commented 2 years ago

It looks like it's my fault

theshadillac commented 2 years ago

i just very thankful that you took the time to write this. now PSNow and RemotePlay work on the Ayaneo. thank you! i am happy to test future releases

r57zone commented 2 years ago

It seems completely fixed in the latest version, now the gyroscope does not load the system. It would be great if tested the latest version.

theshadillac commented 2 years ago

Worked thx!