ValveSoftware / halflife

Half-Life 1 engine based games
Other
3.59k stars 596 forks source link

(cs 1.6) flash light causes fps drops even on high end cards #376

Open MaximilianKohler opened 11 years ago

MaximilianKohler commented 11 years ago

My specs: ati 5870 intel q9650 win7 x64 4gig ram

An easy place to test the flashlight bug is on cs_747. Spawn as ct and go through the corridor towards the inside of the plane and as soon as you go through the first curtains with your flashlight on my fps will drop to around ~60fps.

This is a bug that's been around for years. I think it happens for most people.

Egon-Spengler commented 11 years ago

There seems to be some issues with dynamic lights and OpenGL.

Flashlights cause many players to drop fps, just as Dlights from third-party plugins, maps, etc.

But there's one example I remembered that is even worse: if using OpenGL, even with a high-end graphics card, if you go into a map that uses light or light_spot entities that have their "style" set to something else other than default (such as flicker, pulsing, etc.) your fps will be completely wrecked when looking at them. Oddly enough, changing to D3D would make it perfectly fine.

So basically, OpenGL just can't stand any sort of dynamic lights, for some reason.

There aren't any maps I can recall right now where it's easy to go and experience this but if needed I can try to get a way to reproduce it on a map and link it here, if this will be looked into?

MrSchism commented 11 years ago

The FPS drop almost seems relative to how good your video device is. On my netbook, with the flashlight off, I have 16-50 (average 24) FPS. Flashlight on? 14-35 (average 19) FPS.

So basically, OpenGL just can't stand any sort of dynamic lights, for some reason.

Honestly, it seems to be how the engine handles the dynamic lighting more than openGL. I've played other games where OGL is used for the dynamic lighting and it works brilliantly (Alien Arena, for example).

zarackar commented 11 years ago

Oke , so here some interesting things about FPS drop...

I read all you write up there, STILL!!! My quiestion is... I use steam cs 1.6... and if something explodes, flahsbang, he or flashlights on I get a FPS drop to 5-20 fps... My laptop is i3 2.4 GH 4GB RAM 520 MX video card!!!! I mention NEVER HAD THIS PROBLEM BEFORE...

PS: On non steam cs 1.6 everythign works PERFECT....?????? why ???????

EDIT: I noticed that in DOD that if I shoot the wall from close range it drop fps to 20....

is there any logical explanation ???

MrSchism commented 11 years ago

On my outdated desktop (https://gist.github.com/MrSchism/45ed161ede54ebc30909), with the flashlight on while in smoke, I can only get as low as 23 FPS while firing a machine gun or AR.

I've been trying to record it, but while the game plays at a good resolution with fair enough FPS, the recording doesn't play back at correct speed. The recording shows the FPS I get while in game accurately, but that FPS doesn't sync up with the video... so I haven't bothered to upload it.

is there any logical explanation ???

That's why we have this bug tracker.

juicell commented 11 years ago

i found out fps drops on any fps shooter game using high end card. you can test this by shooting into walls or on the flor but have to be very close. then bulletsmokes start going come out and if you take look at your video card usedage hard to belive how will increase your clock if it reach 100% your fps will drop.

MisterRyan commented 11 years ago

Same thing happens to me, when ever i go into opengl, and someone turns their flashlight on my fps drops insanely low. My average fps is a steady 100.5 and 95.5, and then with a flash light turned on it drops to 23 to 7 fps. But after the huge update in 2013, steam took out d3d so i have to stick with opengl (d3d makes the flashlight not lag and leaves me at 100.5 and 95.5 fps with no drops.)

Egon-Spengler commented 11 years ago

@MisterRyan You might be interested on #241

MIXXXITDJ commented 10 years ago

Has the opengl plus dynamic lights bug been fixed?

MIXXXITDJ commented 10 years ago

I see others have same issue with flashlight and low fps. Good example is office complex level flickering light on ceiling in hallway. Fps are all over. I used to run this game flawlessly