Sligili / HDLethalCompany

Additional graphics settings for Lethal Company, such as resolution, anti-aliasing. fog quality etc.
26 stars 9 forks source link

ship cameras cause a huge performance hit with mod #17

Open MasterEvilAce opened 11 months ago

MasterEvilAce commented 11 months ago

A large chunk of the performance hit of this mod is due to the ship cameras.

While inside the ship, if you ever look at a ship camera monitor, they will activate and the performance will drop. With the default config (which should be around 1080p), I am going from a capped vsync at 144fps to about 105-110fps.

If I leave the ship's interior (by walking outside the doorway) my framerate maxes out again. I can look in any direction and it's silky smooth. Once I walk back inside, my framerate is fine as long as the ship monitors are not in view. Once I look at a monitor the framerate plummets again until I go back outside (which disables the ship's cameras.)

This is also a performance hit while using the mod and the 1.0 resolution scale ("vanilla")

This is somewhat expected with how cameras/render targets work in games... but perhaps they can be optimized or disabled in some way? A quick thing to check would be if the front and rear monitors share the same render target, or if they are rendering the same "rear ship camera" scene independently.

Honestly an option to disable them entirely would be great for performance.

I've tested with the "Helmet Cameras" mod.. and there seems to be no performance impact while using this mod solo. Even if I set the view distance to "1" and the fps to "1" of the cameras, there's no increase in performance at all while using HDLethalCompany. This leads me to believe the default ship cameras (which are TINY screens) are eating performance like crazy.. so much so that the additional helmet camera mod doesn't even matter.

kekanzek commented 10 months ago

A large chunk of the performance hit of this mod is due to the ship cameras.

While inside the ship, if you ever look at a ship camera monitor, they will activate and the performance will drop. With the default config (which should be around 1080p), I am going from a capped vsync at 144fps to about 105-110fps.

If I leave the ship's interior (by walking outside the doorway) my framerate maxes out again. I can look in any direction and it's silky smooth. Once I walk back inside, my framerate is fine as long as the ship monitors are not in view. Once I look at a monitor the framerate plummets again until I go back outside (which disables the ship's cameras.)

This is also a performance hit while using the mod and the 1.0 resolution scale ("vanilla")

This is somewhat expected with how cameras/render targets work in games... but perhaps they can be optimized or disabled in some way? A quick thing to check would be if the front and rear monitors share the same render target, or if they are rendering the same "rear ship camera" scene independently.

Honestly an option to disable them entirely would be great for performance.

I've tested with the "Helmet Cameras" mod.. and there seems to be no performance impact while using this mod solo. Even if I set the view distance to "1" and the fps to "1" of the cameras, there's no increase in performance at all while using HDLethalCompany. This leads me to believe the default ship cameras (which are TINY screens) are eating performance like crazy.. so much so that the additional helmet camera mod doesn't even matter.

////////////////// ///////////////// /////////////////

Hmm... I'm not a developer of this mod or anything, but are you sure this is a problem with HDLethalCompany? What settings do you have enabled in the HDLethalCompany config? Does this happen in vanilla? Also, yes, I also assume that the cameras are eating up performance, as they're just seperate viewpoints to render, but descaled in terms of quality. Now, of course, I'm not sure if that's a perfect analogy. But I understand what you mean. I don't think you're the only guy with this problem.

But if the cameras have been scaled down to 1 "view" (however much that may be) and done the same with the FPS, the cameras still shouldn't be eating that much. Perhaps this is a problem with Lethal Company itself? Does an FPS drop happen without the mod? I don't see why HDLethalCompany should be messing with it. I'll keep checking it out, good luck BTW.