ValveSoftware / halflife

Half-Life 1 engine based games
Other
3.69k stars 624 forks source link

CS 1.6 Linux: Massive FPS drops caused by text chat and AMX messages #1710

Open longboardtard opened 8 years ago

longboardtard commented 8 years ago

The only way I can play this game is to have a bind to enable/disable chat text using the hud_saytext command. My FPS go from 100 to around 60 whenever text is displayed, and it's even worst with AMX type messages. I've always had this problem and although I do not believe this to be a bug, it is indeed an issue as it disrupts gameplay heavily, as even the physics in this game are FPS dependent (try bhopping or running down a slope with 60 FPS or less).

Is there any workaround to this problem? Is it possible to change the fonts? Both for AMX and regular chat text? I just cannot believe that something as simple and ubiquitous as text can cause such a massive drop in FPS. In my opinion this is something that needs to be optimized.

longboardtard commented 8 years ago

After some time, with zero support on this issue, I stumbled upon an article in csbanana about changing the fonts inside the file .local/share/Steam/SteamApps/common/Half-Life/platform/resource/TrackerScheme.res in the section EngineFont. I haven't tried anything yet, as I don't know what the available fonts are in my system. My TrackerScheme.res files can be seen here, and as you can see the font that is set is the Verdana font.

Now I suspected that the game uses the fonts inside /usr/share/fonts, but there are no Verdana fonts inside that directory (or any of its subdirectories), so I assume that Verdana is a font that is already included in the engine, however, I don't know where to find out what the available fonts are, so this is a three part question.

Will the fonts inside /usr/share/fonts work? If not, what are the available fonts? And additionally, what would be the most optimal font (lightweight) to set?