[CS/CS:Z] FPS drop problem with Intel GPUs -> allow r_dynamic 0 in multiplayer
"The GoldSrc engine was written long before modern graphics programming techniques such as vertex buffer objects were around. The OpenGL in GoldSrc (and all other OpenGL games of the time) were executing OpenGL instructions in immediate mode, meaning that everything to be drawn on screen must be sent to the GPU and redrawn every frame -- the GPU forgets everything when it comes to rendering the next frame. AMD (and ATI) GPU's have bad performance issues with immediate mode OpenGL, whereas nVidia GPU's handle this much quicker." Well this game should run effortlessly on the modern iGPU-s, because they perform even better than old flagship GPUs, but unfortunately the OpenGL rendering with the the Intel drivers get's fps drops with dynamic lightning events, like flashlight, grenade, custom maps with a lot of action. you can google about this problem and there is no other solution just to turn off the dynamic lightning ingame, but currently you cannot set r_dynamic 0 in multiplayer, just in HL singleplayer. The -nofbo, low video quality check, no vsync and fps_max 100 helps but this fps drop is different story. Lot of people had trouble after the removal of the D3D rendering, and this setting should help for everyone.
This comment describes in depth about this issue: https://github.com/ValveSoftware/halflife/issues/2565#issuecomment-509409690
The problem is still relevant after 2013. I understand that there is no easy way to fix this problem, because it's engine-OpenGL related, but I don't understad why r_dynamic 0 was removed from goldsrc multiplayer. The flashlight doesn't work with r_dynamic 0 i know, but in CS 1.6 you don't need that anyway, lot of servers and tournaments disable that default. This is the only easy solution for this problem. No need to rewrite anything, just allow this cvar command: r_dynamic 0 If you guys decided to go with OpenGL Linux multiplatform support, than you should think about these problems too. D3D was removed and that's okay, but not solving this issue is not okay. Every new and modern Intel GPU and few ATI high end cards suffers this issue. I also played Half-Life singleplayer and r_dynamic 0 solved the fps drops with grenades and explosions.
Look at these cases: https://github.com/ValveSoftware/halflife/issues/1462 https://github.com/ValveSoftware/halflife/issues/1909 https://github.com/ValveSoftware/halflife/issues/2066 https://github.com/ValveSoftware/halflife/issues/1578 https://github.com/ValveSoftware/halflife/issues/2565 https://github.com/ValveSoftware/halflife/issues/376
CPU: i5 3380M, GPU: Intel HD4000, -nofbo and 1024x768 resolution
OS: Windows 10 x64 up to date, Intel driver up to date

Hello @Lewzke, as you've noted, this issue is already being tracked in various issue reports.
Closing as a duplicate of #1578.
Hello @Lewzke, as you've noted, this issue is already being tracked in various issue reports.
Closing as a duplicate of #1578.
Can you do me a favor? Talk about the r_dynamic 0 with the valve team. Thank you! Best regards, Lewzke
OS?
Windows 10 64bit, up to date, Xbox game recording services and full screen optimizations disabled Intel driver up to date -> set to max performance settings The grenade fps drop is more frequent on custom maps, because they have more environment lightnings and surfaces, a good way replicating the grenade fps drop is the de_alexandra map, where I took the screenshot. This is very popular custom map. Anyway i've played Half Life recently, and I was getting the same thing almost everywhere, complex environments and grenades causing fps drop. Enabling flashlight the drop is even more present, regardless of the resolution, -nofbo and low quality video setting, only the r_dynamic 0 cvar command solved the issue in Half Life singleplayer, but unfortunately in the multiplayer and CS 1.6, the r_dynamic 0 command is not working, it's disabled.
I asked for writing some patch instead waiting.
I asked for writing some patch instead waiting.
Good to hear that. If I can help you with testing, just ask me.
hw.dll:
(72 5F 64 79 6E 61 6D 69 63 00 31 00)
(change 31 -> 30)
You can do it with https://github.com/Garey27/Binary-AutoPatcher or just open hw.dll in HexEditor and find this patter(on screen) and change it manually.
Or you can patch it right here(different ways on screen):

hw.dll:
(72 5F 64 79 6E 61 6D 69 63 00 31 00)
(change 31 -> 30) You can do it with https://github.com/Garey27/Binary-AutoPatcher or just open hw.dll in HexEditor and find this patter(on screen) and change it manually.
Or you can patch it right here(different ways on screen):
Thank you! Nice find, this can cause ValveAntiCheat ban, so I have to be careful trying it. Modified dlls are not recomended in VAC servers. Anyway this will be released or you are not related to Valve?
No, it's just patching, vac 2 searching for cheat patterns in memory. So, if you don't wanna be catched for modified dll by servers, you can use some soft for replacing original md5 for server queries. But i don't think that you really need it, coz it's impossible to get all md5 hashes of hw.dl since 2000.
Im not sure about it's gonna work, test it. Maybe we should patch it in another dll too.

D9 05 34 6C E4 01 DC 1D 40 D0 E1 01 DF E0 F6 C4 44 7B 12 68 A4 68 E4 01 68 28 6C E4 01
->
D9 05 34 6C E4 01 DC 1D 10 D3 E1 01 DF E0 F6 C4 44 7A 12 68 A4 68 E4 01 68 28 6C E4 01
Was:

Now:

Looks like it works now, it's disabled for me too. But using this patch is not safe everywhere, I play on fastcup.net and they have better anticheat than VAC. Maybe I will change my laptop or get a PC with Nvidia card. Thank you for the work! It would be amazing if the Valve team adresses this issue, but it's unlikely to happen.
So, gameguard checking game files consinstency, don't patch files.
Hello @Lewzke, as you've noted, this issue is already being tracked in various issue reports.
Closing as a duplicate of #1578.
Hi kisak, i think I found something about this issue, so you can do something about these open issues, can you ask mikela to review this thing? Thank you, Best Regards, Lewzke
"The GoldSrc engine was written long before modern graphics programming techniques such as vertex buffer objects were around. The OpenGL in GoldSrc (and all other OpenGL games of the time) were executing OpenGL instructions in immediate mode, meaning that everything to be drawn on screen must be sent to the GPU and redrawn every frame -- the GPU forgets everything when it comes to rendering the next frame. AMD (and ATI) GPU's have bad performance issues with immediate mode OpenGL, whereas nVidia GPU's handle this much quicker.
You can experience the same issue in Minecraft (before 1.8), as that was entirely using immediate mode OpenGL too. I have exactly the same issue with my AMD R9 280X, where as my (years older) nVidia GTX 560Ti handled Sven Co-op and Minecraft much faster. I did ask AMD about this but they blamed the games (GoldSrc and Minecraft), due to them not making the best use of a modern OpenGL API. I guess nVidia were just nicer when it came to retaining strong compatibility with older software.|
First to clear things up, OpenGL is just an API to perform rendering on the graphics card. The graphics engine, "GoldSource", uses this API in an old-fashioned way ("immediate mode") which does not suit modern graphics card architectures at all. My guess is that all the state changes undergo tremendous amounts of conversions through the graphics driver to suit the average modern graphics card, turning the CPU into a bottleneck.
I've been reading up about OpenGL's history and they explicitly note that immediate mode is a deprecated feature kept in the API for backward compatibility only. Hardware drivers have to implement support, but can do this however they please. As noted, nVidia implements it pretty well, whereas AMD does not."
Hello, I would like to do this (deactivate the dynamic lights) but in half life I suppose it is the same, but I have no idea of programming the truth or I don't know if they could provide me with the file
Hello, I would like to do this (deactivate the dynamic lights) but in half life I suppose it is the same, but I have no idea of programming the truth or I don't know if they could provide me with the file
Hi, I have the mod, but I not recommend using it, beacuse this can be interpreted by VAC as a cheat, one of my friend used it last year and I think he's account is fine. here you can download
Hello, I would like to do this (deactivate the dynamic lights) but in half life I suppose it is the same, but I have no idea of programming the truth or I don't know if they could provide me with the file
Hi, I have the mod, but I not recommend using it, beacuse this can be interpreted by VAC as a cheat, one of my friend used it last year and I think he's account is fine. here you can download
won't you have one that works in nosteam? or ask too much haha
Hello, I would like to do this (deactivate the dynamic lights) but in half life I suppose it is the same, but I have no idea of programming the truth or I don't know if they could provide me with the file
Hi, I have the mod, but I not recommend using it, beacuse this can be interpreted by VAC as a cheat, one of my friend used it last year and I think he's account is fine. here you can download
hi friend, thanks for the file, could you do the same of r_dynamic in this one? I tried to do it myself but couldn't because of my limited knowledge FIXED SPECIAL HW.zip
Hi, unfortunately I can patch only the steam version, in the other one I dont know what to change, that line is missing. Maybe Mr. afwn90cj93201nixr1re https://github.com/afwn90cj93201nixr2e1reknows this.
rinohl [email protected] ezt írta (időpont: 2020. szept. 10., Cs, 21:12):
Hello, I would like to do this (deactivate the dynamic lights) but in half life I suppose it is the same, but I have no idea of programming the truth or I don't know if they could provide me with the file
Hi, I have the mod, but I not recommend using it, beacuse this can be interpreted by VAC as a cheat, one of my friend used it last year and I think he's account is fine. here you can download https://web.tresorit.com/l/UYtkP#1o3ADDQD3oXe32fxqZy_Qg
hi friend, thanks for the file, could you do the same of r_dynamic in this one? I tried to do it myself but couldn't because of my limited knowledge FIXED SPECIAL HW.zip https://github.com/ValveSoftware/halflife/files/5204151/FIXED.SPECIAL.HW.zip
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ValveSoftware/halflife/issues/2796#issuecomment-690645107, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJSPYMQ3S7CWG4SC3NQYZSLSFEQKFANCNFSM4JSSST7Q .
-- Kolcsár Levente
D9 05 1C 43 E4 01 DC 1D 10 B3 E1 01 DF E0 F6 C4 44 7A 12 68 E4 3F E4 01->D9 05 1C 43 E4 01 DC 1D 40 B0 E1 01 DF E0 F6 C4 44 7B 12 68 E4 3F E4 01
do you do it with hex editor?
D9 05 1C 43 E4 01 DC 1D 10 B3 E1 01 DF E0 F6 C4 44 7A 12 68 E4 3F E4 01->D9 05 1C 43 E4 01 DC 1D 40 B0 E1 01 DF E0 F6 C4 44 7B 12 68 E4 3F E4 01