tunic-randomizer icon indicating copy to clipboard operation
tunic-randomizer copied to clipboard

Huge frame drops when Grass + Breakable shuffle (on Archipelago)

Open iwa opened this issue 8 months ago • 8 comments

Hello!

Thanks a lot for your awesome work!

I have a little issue tho, have been doing lots of local rando with archipelago (to get tracking through poptracker), and today I've tried to make a run with both grass and breakable shuffle

The game is really choppy, it's playable but far from optimal :/

Is it a known issue?

Idk what software I could use to show the drops but I can provide a video footage if necessary

Thanks!

iwa avatar May 02 '25 13:05 iwa

Which OS are you using? Are you on the Steam version, Game Pass/Windows Store version, or a different version? Is it always choppy? If not, when specifically is it choppy?

ScipioWright avatar May 02 '25 13:05 ScipioWright

Windows 11, playing through Steam, Bepinex 6.0.0 pre1, Rando 4.2.3, Archipelago 0.6.1 hosted locally

AMD Ryzen 7 7700X, RTX 4070 TiS

It's always choppy as-long-as I'm in game, if I go back to the main menu or load another save fps are fine (i get around ~300fps, here 110/120fps max with drops)

also happens even if i play in windowed mode

would me listing all my in-game rando settings help?

iwa avatar May 02 '25 14:05 iwa

In-game rando settings wouldn't really help.

Some footage would probably be helpful, preferably including an FPS counter (the one through Steam is fine).

You should also check with breakables only and grass only to see if it's only when you're doing one of them.

ScipioWright avatar May 02 '25 14:05 ScipioWright

here's a video footage: https://youtu.be/Mm009Ogg8_I (sry had to upload on youtube cause the clip was too heavy)

first i launch a run with grass rando only, second one with breakables shuffle only (as a reference for comparison) ; seems that grass is the issue :(

one idea on top of my head, my main screen is 360hz, i've heard from the speedrun community that the game's internal clock is running at the frequency of your monitor, could it be the issue maybe? game would be overloaded?

iwa avatar May 02 '25 14:05 iwa

That's very possible -- the physics in the game can get pretty janky with higher framerates, especially when you get past 120 fps.

Try dropping the framerate down to 120 and see if it still feels choppy.

Info on changing the framerate: https://www.speedrun.com/tunic/guides/69166

ScipioWright avatar May 02 '25 14:05 ScipioWright

didnt help unfortunately, tried 60 & 120hz but it still feels choppy when using the grass rando setting :/

iwa avatar May 02 '25 15:05 iwa

A bit late on this, but what method did you use to lower the framerate? If you run the game in fullscreen mode there should be an option to change framerate from directly in the game, could possibly try that if you haven't. Usually some lag is normal with grass rando but it's mostly when cutting down a lot of grass and not the intermittent choppiness seen here. My best guess is if the monitor is still set to a high refresh rate in your windows display settings it might be messing with it. I run the game on a 120hz monitor and generally don't see it get choppy like that unless it's been running for few hours.

silent-destroyer avatar May 09 '25 01:05 silent-destroyer

followed the guide on speedrun.com: changed my refresh rate in nvidia panel, forced the game in fullscreen + vsync, and matching in-game refresh rate setting with the one I've set in nvidia panel

would need to capture another video footage but i still get constant drops

iwa avatar May 09 '25 09:05 iwa

We found a potential source of lag spikes with grass rando, will try to push an update out this week that will hopefully resolve this issue

silent-destroyer avatar May 11 '25 15:05 silent-destroyer

thanks! lmk when you have a version ready, i'll test it asap

iwa avatar May 12 '25 17:05 iwa

Hey @iwa, please try this build out (preferably with archipelago as you originally did) and let me know if it improves any. Thanks!

silent-destroyer avatar May 14 '25 03:05 silent-destroyer

sure thing, i'll try it tonight

do i need to regenerate the archipelago seed with a specific apworld?

iwa avatar May 14 '25 06:05 iwa

Nope, it'll work with any existing Archipelago seeds.

silent-destroyer avatar May 14 '25 10:05 silent-destroyer

the build you provided works great! no drops whatsoever, even when i'm running the game in 360hz no vsync! thanks a lot 😄

iwa avatar May 14 '25 20:05 iwa

Fantastic, thank you for testing it! I went ahead and made a new release with these changes: https://github.com/silent-destroyer/tunic-randomizer/releases/tag/4.2.5

silent-destroyer avatar May 15 '25 00:05 silent-destroyer