34736384 / genshin-fps-unlock

unlocks the 60 fps cap
MIT License
2.7k stars 211 forks source link

Honkai: Star Rail support #128

Open DAOWAce opened 1 year ago

DAOWAce commented 1 year ago

Did a brief search and came up empty; if anything exists it probably isn't cached by google yet.

Star Rail launches in 3 days. It's still 60FPS capped like Genshin (and still 120 on iOS, asinine), probably very similar to unlock.

Posting here for preliminary support in hopes it's ready for launch, as the game is going to be unplayable at 60FPS for me (motion sickness).

EDIT: Temporary fix found.

  1. Go to game registry location: _HKEY_CURRENTUSER\Software\Cognosphere\Star Rail
  2. Look for GraphicsSettings_Model (with a string of numbers after).
  3. Right click and select "Modify". On the right side of the hex editor is readable text.
  4. Find FPS, change the number to any supported framerate you like. (30, 60 or 120)

The graphics settings will not be editable after this change, so set them how you desire beforehand (including resolution).

voxain commented 1 year ago

I'm gonna lean out of the window here and say it's probably exactly the same process to unlock it. The Game file for star rail is just called StarRail.exe by the way. So it shouldn't be more than simply allowing that file to be loaded

lagopodous commented 1 year ago

It's baffling that Hoyo still insists on 60 fps cap for PC. Hopefully we get a similar unlocker solution for Star Rail.

voxain commented 1 year ago

I know, right? It's insane. They make us worry that the game won't run good on the switch, while giving mobile phones double the framerate and yet doesn't allow PCs to go above 60. It's jsut wild to me how poorly something like that can be made, since it's clearly possible to do so very easily.

34736384 commented 1 year ago

It's doable but it'll be a little sophisticated. Since they are using Tencent's ACE anti-cheat, accessing memory from user mode is not as easy as genshin.

voxain commented 1 year ago

Jesus, that too now? Why does tencent have to be everywhere, and why do i have to install it on my system just to play a game 🙄

Cyan101 commented 1 year ago

Pointing it at star rail doesn't seem to work for me, genshin works fine though

mio12333 commented 1 year ago

Turns out, it's not just me who wants to come up and see if there's an unlocking tool.

Have there been any discoveries lately?

I hope the author who developed this tool is willing to write a version for the railway.

F13NDEX commented 1 year ago

Really hope the author could make one for honaki star rail. 60 FPS on that game hurts my eyes.

Anivie commented 1 year ago

It's doable but it'll be a little sophisticated. Since they are using Tencent's ACE anti-cheat, accessing memory from user mode is not as easy as genshin.

Looking forward to your new work.

EchoesEqu commented 1 year ago

HKEY_CURRENT_USER\Software\Cognosphere\Star Rail\GraphicsSettings_Model_h2986158309 Change from 60 to 120

34736384 commented 1 year ago

HKEY_CURRENT_USER\Software\Cognosphere\Star Rail\GraphicsSettings_Model_h2986158309 Change from 60 to 120

Yes, this. At the moment the easiest way is to edit registry. Just no real-time adjustments and the highest seems to be 120 only. Any values higher than 120 will be replace to 60 instead.

for CN it will be here instead \SOFTWARE\miHoYo\崩坏:星穹铁道\

lagopodous commented 1 year ago

Does Tencent ACE pick up the change in registry? It's a small change but still there, might flag your account?

Cyan101 commented 1 year ago

I doubt anyone can say for sure? Wouldn't be a great anti cheat if we knew what it did and didn't check. Either way it's still against TOS, all of this is.

On Thu, 27 Apr 2023, 4:40 pm lagopodous, @.***> wrote:

Does Tencent ACE pick up the change in registry? It's a small change but still there, might flag your account?

— Reply to this email directly, view it on GitHub https://github.com/34736384/genshin-fps-unlock/issues/128#issuecomment-1525138396, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVQY3QT4TNB4EAL4OEGSFLXDIWIHANCNFSM6AAAAAAXIJLDDQ . You are receiving this because you commented.Message ID: @.***>

DAOWAce commented 1 year ago

HKEY_CURRENT_USER\Software\Cognosphere\Star Rail\GraphicsSettings_Model_h2986158309 Change from 60 to 120

Wow.

To this think is the first game they had this sitting in the registry for. Never even thought to look because of it.

Finally, can go back to enjoying the game instead of suffering trying to play it. Edited OP with instructions (ripped from PCGW).

Hopefully it stays working, but now we can't adjust any graphics options or it'll reset, so I'm still considering this a temporary option.

Please send feedback (or bug report) about the lack of 120FPS on PC/console, and make a point of how dumb it is to support it on a mobile platform in comparison! And the lack of controller rebinding at that.

34736384 commented 1 year ago

Does Tencent ACE pick up the change in registry? It's a small change but still there, might flag your account?

no

iTofu commented 1 year ago

HKEY_CURRENT_USER\Software\Cognosphere\Star Rail\GraphicsSettings_Model_h2986158309 Change from 60 to 120

Yes, this. At the moment the easiest way is to edit registry. Just no real-time adjustments and the highest seems to be 120 only. Any values higher than 120 will be replace to 60 instead.

for CN it will be here instead \SOFTWARE\miHoYo\崩坏:星穹铁道\

This helps me, many thanks~

FlicksDaModdle commented 1 year ago

edit.zip

This should automate the edit, please check if it works for you.

rickk23 commented 1 year ago

Did a brief search and came up empty; if anything exists it probably isn't cached by google yet.

Star Rail launches in 3 days. It's still 60FPS capped like Genshin (and still 120 on iOS, asinine), probably very similar to unlock.

Posting here for preliminary support in hopes it's ready for launch, as the game is going to be unplayable at 60FPS for me (motion sickness).

EDIT: Temporary fix found.

  1. Go to game registry location: _HKEY_CURRENTUSER\Software\Cognosphere\Star Rail
  2. Look for GraphicsSettings_Model (with a string of numbers after).
  3. Right click and select "Modify". On the right side of the hex editor is readable text.
  4. Find FPS, change to any supported framerate you like. (30, 60, 120)

unrelated question but, you might have also seen the option of custom resolution in this fps unlocker. Do you know anyway to run Star Rail at a custom resolution by editing something in regedit (like you gave method for unlocking fps). I use custom resolution resolution in genshin most time would love use same in Star Rail by some means. Thanks.

ryanmalonzo commented 1 year ago

Did a brief search and came up empty; if anything exists it probably isn't cached by google yet. Star Rail launches in 3 days. It's still 60FPS capped like Genshin (and still 120 on iOS, asinine), probably very similar to unlock. Posting here for preliminary support in hopes it's ready for launch, as the game is going to be unplayable at 60FPS for me (motion sickness). EDIT: Temporary fix found.

  1. Go to game registry location: _HKEY_CURRENTUSER\Software\Cognosphere\Star Rail
  2. Look for GraphicsSettings_Model (with a string of numbers after).
  3. Right click and select "Modify". On the right side of the hex editor is readable text.
  4. Find FPS, change to any supported framerate you like. (30, 60, 120)

unrelated question but, you might have also seen the option of custom resolution in this fps unlocker. Do you know anyway to run Star Rail at a custom resolution by editing something in regedit (like you gave method for unlocking fps). I use custom resolution resolution in genshin most time would love use same in Star Rail by some means. Thanks.

HKEY_CURRENT_USER\Software\Cognosphere\Star Rail\GraphicsSettings_PCResolution_h431323223 seems to be what you are looking for.

rickk23 commented 1 year ago

Did a brief search and came up empty; if anything exists it probably isn't cached by google yet. Star Rail launches in 3 days. It's still 60FPS capped like Genshin (and still 120 on iOS, asinine), probably very similar to unlock. Posting here for preliminary support in hopes it's ready for launch, as the game is going to be unplayable at 60FPS for me (motion sickness). EDIT: Temporary fix found.

  1. Go to game registry location: _HKEY_CURRENTUSER\Software\Cognosphere\Star Rail
  2. Look for GraphicsSettings_Model (with a string of numbers after).
  3. Right click and select "Modify". On the right side of the hex editor is readable text.
  4. Find FPS, change to any supported framerate you like. (30, 60, 120)

unrelated question but, you might have also seen the option of custom resolution in this fps unlocker. Do you know anyway to run Star Rail at a custom resolution by editing something in regedit (like you gave method for unlocking fps). I use custom resolution resolution in genshin most time would love use same in Star Rail by some means. Thanks.

HKEY_CURRENT_USER\Software\Cognosphere\Star Rail\GraphicsSettings_PCResolution_h431323223 seems to be what you are looking for.

Thanks. Game starts at resolution I set in that section you mentioned but then by the time game launches it restores back to 1280x720

vw6 commented 1 year ago

Tell me please, am I the only one who gets the lack of graph settings after changing 60 to 120?

zurce commented 1 year ago

Tell me please, am I the only one who gets the lack of graph settings after changing 60 to 120?

Nope, Settings disappear when you do the 120 trick, you can just select a preset and they'll come back but the game will go back to 60 fps

From my experience 2x rendering at 120 is too much for my 4090 so , i had to dial down to 1.2

DAOWAce commented 1 year ago

unrelated question but, you might have also seen the option of custom resolution in this fps unlocker. Do you know anyway to run Star Rail at a custom resolution by editing something in regedit (like you gave method for unlocking fps). I use custom resolution resolution in genshin most time would love use same in Star Rail by some means. Thanks.

Not registry, but the standard Unity command line. Should be doable by launching the client's .exe directly with a shortcut, but I've not tested in Star Rail yet. EDIT: Doesn't seem to work in Star Rail.

-screen-width ### -screen-height ###

So for example: "E:\Games\Star Rail\Game\StarRail.exe" -popupwindow -screen-width 3000 -screen-height 1080

Sets the game to borderless mode and the resolution to 3000x1080. (and if anyone's wondering why I set this, it's because Genshin's FoV was so low it made me sick, I have a 3440x1440 monitor so extending the horizontal resolution gave more FoV leading to better ability to play)

From my experience 2x rendering at 120 is too much for my 4090 so , i had to dial down to 1.2

Did you typo? No way a 4090 should have any difficulty with this game at 2x render. If you check it when it's dropping, it should be because of a CPU bottleneck, not GPU. Genshin was the exact same way if I had shadow/object quality at max. They didn't optimize for anything above 60FPS... though most Unity games suffer like this regardless. Sad to see it's still a problem in Star Rail.

zurce commented 1 year ago

Did you typo? No way a 4090 should have any difficulty with this game at 2x render. If you check it when it's dropping, it should be because of a CPU bottleneck, not GPU. Genshin was the exact same way if I had shadow/object quality at max. They didn't optimize for anything above 60FPS... though most Unity games suffer like this regardless. Sad to see it's still a problem in Star Rail

I'm running a i7-13700k so CPU shouldn't be an issue, I tried it once only and gave me 80~ fps and gpu at 100%, i was very confused to be honest, dumbed down to 1.4 and got constant 120 fps

I tried it again, same behavior so it was a weird one of issue, i also tried bring down the shadow to medium and that does give me constant 120 and gpu utilization at around 83~%

rickk23 commented 1 year ago

unrelated question but, you might have also seen the option of custom resolution in this fps unlocker. Do you know anyway to run Star Rail at a custom resolution by editing something in regedit (like you gave method for unlocking fps). I use custom resolution resolution in genshin most time would love use same in Star Rail by some means. Thanks.

Not registry, but the standard Unity command line. Should be doable by launching the client's .exe directly with a shortcut, but I've not tested in Star Rail yet.

-screen-width ### -screen-height ###

So for example: "E:\Games\Star Rail\Game\StarRail.exe" -popupwindow -screen-width 3000 -screen-height 1080

Sets the game to borderless mode and the resolution to 3000x1080. (and if anyone's wondering why I set this, it's because Genshin's FoV was so low it made me sick, I have a 3440x1440 monitor so extending the horizontal resolution gave more FoV leading to better ability to play)

I tried this, it starts the game at the resolution I put but then after login page it reverts back to default in-game resolution.

Flatfire commented 1 year ago

Keep in mind, for those of you using the FPS registry edit for Honkai, it breaks the graphical settings menu until undone. You won't be able to modify specific graphics settings until the change is reverted or you edit the specific settings in the same registry file.

DAOWAce commented 1 year ago

I'm running a i7-13700k so CPU shouldn't be an issue, I tried it once only and gave me 80~ fps and gpu at 100%, i was very confused to be honest, dumbed down to 1.4 and got constant 120 fps

I tried it again, same behavior so it was a weird one of issue, i also tried bring down the shadow to medium and that does give me constant 120 and gpu utilization at around 83~%

That's weird. I've been running 2x render and max settings with my 4090 and 5950x. It wasn't until that 'scene' that I noticed stuttering from a CPU bottleneck. Then Balebog after progressing story.. and then the next destination after Jarilo-VI. The entire next section of the game is practically constantly bogged down, it's awful.

But my GPU usage I haven't noticed going over 60%. What I have noticed is the fans ramping up and it outputting heat, so I'm gonna drop render res down to 1.4 again (a game this simple shouldn't be toasting my room) and shadows to mitigate the CPU bottleneck. Also, remember that monitoring tools (GPU-Z) will dynamically change GPU Load % based on the current clock speed.

HOWEVER, there's a memory leak, again. Was getting FPS drops into the 60's, terrible experience, thought the next area was so unoptimized 'cause of the 60FPS target, but nope, restarted game and was back into the 100's. This happened again after 30 minutes of play; only getting more severe as time went on. This could've been the reason you saw FPS loss, or another strange issue possibly resulting from setting the FPS like this (and breaking the graphics menu; perf is AWFUL with it open, keeps dropping FPS rapidly, probably looping through an error).

I tried this, it starts the game at the resolution I put but then after login page it reverts back to default in-game resolution.

Alright, yeah, finally tried it myself and it does reset the resolution. Also tried manually setting _GraphicsSettings_PCResolution__ and _Screenmanager Resolution Width/Height__ and changing Use Native, but they all reset too.

Probably have to set a custom resolution in the driver with what you desire then select it in options, provided it reads them.

Flatfire commented 1 year ago

I just tried the registry hack, and noticed 2 significant issues with this method:

1. If you use the Windows Game Bar alongside the "unlocked" 120 fps setting, it will absolutely destroy the performance(40 fps and unstable frame time), not sure if this is a Game Bar problem or if the game is just not well optimized.

2. It will break the graphic setting menu completely.

And I also run into the same problem as @DAOWAce did, the GPU usage for my 6800XT just refuses to go higher than 60% while the start scenes fps jump from ~70 to 110 fps all the time, in the same room. And my 7700X never has more than 10% of usage.

Not sure if this is caused by the new anti-cheat or if the game lacks testing on the PC platform, but in its current state even if someone figures out how to bypass ACE and fully unlock FPS, it is still hardly playable with a high refresh rate.

@M1Screw Running an RX 6800 and R5 5600 in Windows 11, I can't say I experience the issues you've described regarding the game bar or GPU usage. The attached screenshot is taken in Luofu, at max settings on a 3440x1440p display and 1.4x res. The CPU usage report in the game bar is inaccurate, but the FPS usually hovers between 95-120, with 100% GPU usage and 30%ish CPU usage.

image

The graphics menu does absolutely break, however. I mentioned this in an earlier comment, and this is where FPS definitely tanks.

image

jerichosy commented 1 year ago

In my case, not only does my FPS tank at some points in the game, but also my keybinds stop responding like ESC no longer brings up the menu. Using 3080 and 5600X on a 1440p ultrawide monitor with 1.4 scaling.

Flatfire commented 1 year ago

@M1Screw I wasn't trying to prove there's no issue, I was trying to define some form of variance in the performance between system setups by providing as much information as I could. I picked Luofu to take some screenshots of performance because it's one of the more resource intensive regions of the game.

I took some time to try and replicate your testing though. I ran for about 10 minutes in the snow plains calyx, which should be enough for the game to enter a sort of power-saving state if that's what it's doing and I can't seem to get it to dip during idle. Below are the frametimes and framerate during whatever window AMD's graphs show. I've attached the actual performance log for that 10 minute run as well.

image

This time around I used only AMD's logging tools as we've both seen the Game Bar is pretty unreliable for reporting. Despite that, I couldn't replicate the dips you're seeing and it held a stead 119FPS pretty much the entire time. I think there's another factor at play here that's hurting your performance.

Also fwiw, I run without TAA on. While Hoyo actually does a decent job with its implementation, I prefer to run at a higher res if possible. I'm not just maxing out settings for the sake of making the game harder to run.

20230510-083355.CSV

DAOWAce commented 10 months ago

So to update this.. the 1.5 update just deleted this registry entry.

The game is back to 60FPS.

Don't suppose anyone smarter than me is able to find out how where it is now? I haven't found anything relevant in the registry.

Wtf is wrong this company, I swear. Honkai Impact was 120fps, everything after has been capped to 60.. except Genshin on iOS, which makes no sense.

EDIT: Changing a graphics setting and causing it to switch to "Custom" re-creates the registry key, which you then need to tweak again.

Source: https://www.reddit.com/r/HonkaiStarRail/comments/17vj4gg/fps_unlock_no_longer_works/k9avt5b/

voxain commented 10 months ago

Well obviously you would do it like that. An iPhone has way more processing power than your stinky gaming PC after all. Who says they're getting money from apple for making their game look better on a phone 🤡