slushiegoose / Town-Of-Us

An Among Us mod containing a bunch of roles
GNU General Public License v3.0
823 stars 355 forks source link

Investigator Lag (FPS drops) #133

Closed KyaniteKirin closed 3 years ago

KyaniteKirin commented 3 years ago

This has happened not just to me, but everyone who has had investigator in my group. We have changed the settings so that footsteps appear less frequently or appear at different sizes but nothing seems to fix the sudden fps drops. I have a Ryzen 5, 16 gb of ram and an RTX 2080 so it's definitely not hardware. I've seen some people stream and play investigator without the fps drops but not sure how they manage to do that.

FPS drops happen every 1-2 seconds. The game runs smoothly for everyone else in the lobby, only the investigator lags. No other roles have this issue.

Among Us version 2021.4.12s & 2021.4.14s | Mod version 2.0.2

KH0DIIN commented 3 years ago

taut does happen Investigator is so bad and the Mod game stutters a lot anyways with the Mod

KyaniteKirin commented 3 years ago

I have no problem with the game itself. I'd say if the game itself is lagging that may be because your hardware is struggling a bit to run the game plus the mod. I only have a problem with the investigator role, so not sure if it's not optimized in the latest version or if it's a problem on my end. I'm just skeptical about it being on my end because my hardware is quite good and I'm not the only person having issues with investigator lag.

If I play again anytime soon, I may look into recording my gameplay to show the difference between frames when playing any other role compared to playing investigator but hoping the problem may be fixed before I play again or someone has some insight that may help stop the spikes. My personal guess may be optimization is needed within the mod itself?

ghost commented 3 years ago

Its not just you. Its down to Slushie to fix, and he will, just give him time.

KyaniteKirin commented 3 years ago

Its not just you. Its down to Slushie to fix, and he will, just give him time.

Ah awesome then :) Was wondering if maybe my settings may have been wrong. My friends and I are patient, looking forward to future updates 😀

ryancwilliams commented 3 years ago

I am also experiencing this issue. I am running a RTX 2080. My FPS goes from 60 normally to less than 20 when I am the investigator. It interferes with my ability to do some tasks.

Is there any information I can contribute to help solve this issue?

KyaniteKirin commented 3 years ago

I am also experiencing this issue. I am running a RTX 2080. My FPS goes from 60 normally to less than 20 when I am the investigator. It interferes with my ability to do some tasks.

Is there any information I can contribute to help solve this issue?

I have noticed that the lag spikes get a bit better if you increase the interval of the footprints and decrease how long they last. I'm almost certain now its just poor optimization or there's a light problem with the code that makes it lag, but if not everyone is experiencing this, it makes me wonder what's different about our installation compared to theirs

ghost commented 3 years ago

The issue is in how the updates are called, which is why you lag. I’m pretty sure it’s called every frame through HudManager.Update, which is where the issue lies.

Sent from my iPhone

On May 8, 2021, at 3:06 PM, KyaniteKirin @.***> wrote:

 I am also experiencing this issue. I am running a RTX 2080. My FPS goes from 60 normally to less than 20 when I am the investigator. It interferes with my ability to do some tasks.

Is there any information I can contribute to help solve this issue?

I have noticed that the lag spikes get a bit better if you increase the interval of the footprints and decrease how long they last. I'm almost certain now its just poor optimization or there's a light problem with the code that makes it lag, but if not everyone is experiencing this, it makes me wonder what's different about our installation compared to theirs

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

vperpl commented 3 years ago

0 issues with investigator here. on 2 pcs one low end 2nd highend. so it must be something in system related

ghost commented 3 years ago

0 issues with investigator here. on 2 pcs one low end 2nd highend. so it must be something in system related

impossible; I run a Ryzen 9 3900X paired with 32GB DDR4 3600MHz Ram, and an RTX 2070 Super. I don’t even get bottlenecks on my VR content when I stream, but just play a bit of modded Among Us and get 1 FPS? Uh, what?

ryancwilliams commented 3 years ago

0 issues with investigator here. on 2 pcs one low end 2nd highend. so it must be something in system related

For me it does not happen with 4 people but it does happen with more players. At 8 players it is almost unplayable. At 10 it is unplayable. The more players their are the worse it is.

Given that I am not the only person with this issue I would assume that the code has some indeterminant behavior that is only running on the client that is unique to the Investigator.

Indeterminant behavior means that the code is running differently on some systems. It could be my hardware causes this issue but the code being indeterminant makes this issue possible.

On the system that I am experiencing this issue on my CPU is Intel Haswell E (5th gen intel) and my GPU is a 2080.

ryancwilliams commented 3 years ago

Polus Support on the Discord just replied to me with this:

Issues with the investigator role or general lag have been reliably resolved by setting processor affinity to use a single core or just 0 and 1. https://www.eightforums.com/threads/cpu-affinity-shortcut-for-a-program-create-in-windows.40339/

I will verify it next time I play to see if this fixes it for me.