The map in question: https://tf2maps.net/downloads/downstream.15574/
Recently I tested this version of the map and got some complaints related to framerates dropping massively when approaching the central area from spawn. I knew this could become an issue eventually, but I never realised the scale of the problem, since I didn't know I had my FPS capped to the default value of 300 and my PC has pretty high specs, so it has no problem reaching that value. So I uncapped my FPS, ran some tests and... Things are bad. Like, really bad.
For reference, this is me looking away from the central area at spawn. My framerate sits around 700 comfortably, which is to be expected since there's not too much to render.
Now look at what happens as soon as I turn around. Not even move, mind you, this is just me turning around on the spot. My framerate completely plummets to about 400.
And now look at what happens when I exit spawn and just look at this wall right next to the main exit. For some reason, looking at this wall specifically gives you far worse framerates than just looking through the door itself, and my framerates go as far down as 350, which is half of what my PC could manage on the first example. This is just unacceptable, and the fact that this is the state of things right now and I didn't catch it sooner is downright embarassing.
So now I'm kind of lost. I'm very new to this stage of development in a map, having spent years working on grayboxes and abandoning them after a few weeks, so when it comes to optimizing I have no clue what I'm doing. I know the tools to analyze what's wrong, but I'm not sure how to actually fix the problem, especially since I do know that this kind of map is one of the worst kinds to optimize, since it's really hard to block the player's view to different areas given how open everything is.
Using mat_wireframe I can see that in this last spot I'm rendering way more than I need to, so there's the problem. Now I need to figure out how to stop it from happening.
Recently I tested this version of the map and got some complaints related to framerates dropping massively when approaching the central area from spawn. I knew this could become an issue eventually, but I never realised the scale of the problem, since I didn't know I had my FPS capped to the default value of 300 and my PC has pretty high specs, so it has no problem reaching that value. So I uncapped my FPS, ran some tests and... Things are bad. Like, really bad.
For reference, this is me looking away from the central area at spawn. My framerate sits around 700 comfortably, which is to be expected since there's not too much to render.
Now look at what happens as soon as I turn around. Not even move, mind you, this is just me turning around on the spot. My framerate completely plummets to about 400.
And now look at what happens when I exit spawn and just look at this wall right next to the main exit. For some reason, looking at this wall specifically gives you far worse framerates than just looking through the door itself, and my framerates go as far down as 350, which is half of what my PC could manage on the first example. This is just unacceptable, and the fact that this is the state of things right now and I didn't catch it sooner is downright embarassing.
So now I'm kind of lost. I'm very new to this stage of development in a map, having spent years working on grayboxes and abandoning them after a few weeks, so when it comes to optimizing I have no clue what I'm doing. I know the tools to analyze what's wrong, but I'm not sure how to actually fix the problem, especially since I do know that this kind of map is one of the worst kinds to optimize, since it's really hard to block the player's view to different areas given how open everything is.
Using mat_wireframe I can see that in this last spot I'm rendering way more than I need to, so there's the problem. Now I need to figure out how to stop it from happening.
But that's as far as I can get. I tried to read a long optimization guide for Source maps, but it ended up frying my brain with all the information in it, so I can't think of anything else other than asking for help here. I'm really concerned because this is a project I'm really motivated for, and I don't want it all going down the drain because of an issue like this.
Hope the information in this post is enough, but I can provide the vmf if needed.