switchbrew / nx-hbmenu

The Nintendo Switch Homebrew Menu
ISC License
1.22k stars 129 forks source link

Animation and scrolling speed tied to CPU clock #113

Open pixeltester opened 4 years ago

pixeltester commented 4 years ago

I overclock CPU with a specific title to improve operation speed in multiple homebrews. A side effect of this is that hbmenu animation and thus scrolling speed is tied to CPU clock and will speed up or slow down drastically depending on what clock speed is set. This could also present a problem for users who may underclock for battery saving purposes for example.

Can you lock animation speed for any CPU clock rate?

fincs commented 4 years ago

1) Changing the clock frequency of the CPU outside of their normal parameters established by Nintendo is neither recommended nor supported by us. 2) nx-hbmenu currently renders its interface purely in software, which is known to be slow. "Fixing" this would entail rewriting the entire interface to take advantage of the GPU, which is a major undertaking that has been considered, but a decision has not been taken yet.

DevL0rd commented 4 years ago

umm @fincs you just need to apply an animation delta so it is consistent no matter the speed it runs...

Delta being the time it took to get back to this code since last time, / 1000 IE: scroll.y += scrollyY * delta

WinterMute commented 4 years ago

@DevL0rd patches always appreciated :P