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

[Feature Request] virtual cpu clock control #1429

Open
Spidy123222 opened this issue May 8, 2023 · 3 comments · May be fixed by #1467
Open

[Feature Request] virtual cpu clock control #1429

Spidy123222 opened this issue May 8, 2023 · 3 comments · May be fixed by #1467
Labels
enhancement New feature or request

Comments

@Spidy123222
Copy link

Spidy123222 commented May 8, 2023

Feature Request

I was tweaking with xemu’s cpu clock speed and it acts like how other emulators do for games. Was able to gain performance lowering clock speed of virtual cpu on some games and worse on others and also caused more instability fps which is expected. It’s not ideal but would be interesting feature to add to ui or in the toml to change the clock speed of cpu (by percentage like 100% is default and above and lower is different) for variable refresh rate games by raising the clock speed and or games that might benefit from lowering cpu clock.

It’s more of a hack but there is definitely people that would use it. If it was added I would not accept issue reports if it’s not default clock as it could have bugs on some games but also could activate frame skip for some games to run full speed for some.

this is how dolphin explains it. (Goes from 5% to 400% as a example which 400% would be 4x default essentially)
IMG_6937

Alternatives

No response

Additional Context

Using my steamdeck I am able to get 4x performance on menus (4fps before and getting 18 fps after) and 2x certain areas by lowering the cpu clock by 50%. Certain races it makes it playable. This is where I changed it.

return muldiv64(qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL), 733333333,

And this is what I did to get 50% (I was testing beforehand to 200% so that why it’s not the same as default but if you do 366666666.5 x 2. It will equal default.) Spidy123222@a1a7c81

@Spidy123222 Spidy123222 added the enhancement New feature or request label May 8, 2023
@LeRutY
Copy link

LeRutY commented May 11, 2023

Would love to have that function

@Spidy123222
Copy link
Author

Would love to have that function

You can also do gpu but I don't see any benefit it could do. Should test that too. I do know other emulators only have that one specifically for setting file.

@Spidy123222
Copy link
Author

Spidy123222 commented Jun 4, 2023

Example of 50% cpu https://cdn.discordapp.com/attachments/680488810429153315/1105292018625814598/20230508163639_1.jpg

Default https://cdn.discordapp.com/attachments/680488810429153315/1105292267939430410/20230508164436_1.jpg

On the 50% it also made menus actually usable fps from 4 fps to 23fps.

Adding clock speed usually works fine. But in some games like conker the animation speeds are faster. Which I'm told a patch to conker fixes it like Xbox replacement CPU's do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants