Windows build having Steam framerate lag (Only)

Hey All,

BACKGROUND
This is a big issue that is the main complaint about the Steam version of my game’s demo basically being unplayable.

If you download my game’s demo on Steam: Wildaria on Steam

ISSUE
If you run the demo normally through Steam when you make simple actions like damage an enemy or get damaged there is framerate lag.
But if you literally run the .exe Steam is using it runs smoothly.
It is also only a Windows issue from what I can tell, works fine on mac.
I don’t have any Steam integrations either.

Steam support couldn’t help me, I tried asking steam developer forums as well. Appreciate any help or leads you might have on the issue.

There’s very little to go on,

What Unity version did you build the game using?

Are you using any UGS products?

Have you updated your graphics drivers?

Do you have an logs you can share with us?

Hi, we’ve got a very similar issue:

  • If I build the game and upload to Steam, I get FPS hitches regularly but my colleague gets them much less often (not 100% sure, they might just be less severe, or there’s caching issues)
  • If he builds and I run on Steam, I get FPS hitches but he doesn’t

The game doesn’t hitch at all if run standalone, off Steam.

Unity 2021.3.25f1
No UGS products
Graphics drivers are up to date (both using NVidia cards)
I’m running a Win11 laptop
Can DM a player.log file

I downloaded spacefudges demo as well and the hitching timing and frequency is pretty similar.

Hello,

Did you manage to fix this issue ?
I’m experiencing something similar.

We were trying a bunch of stuff to fix it, we think maybe turning on the il2cpp scripting back end might have done it? But not 100% sure.

Tanks for your reply. It turned out we had some Text Mesh Pro warnings spamming the console, and for some reason this caused massive performance issues when playing on Steam, but not so much when playing the build directly

Hey, did you solve this issue?

I had the same issue. I just removed all Debug.Log statements. From “i would not even play this game for free” to “alright yeah, 5 bucks, why not”

1 Like

Same here.

Do, editor only logs, and, disable logging (if needed) in player settings.

Try something like this:

#if UNITY_EDITOR
        Debug.Log("Your log");
#endif