ValveSoftware / halflife

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

OpenGL lag on Intel GMA notebook #1227

Closed L4Z10 closed 11 years ago

L4Z10 commented 11 years ago

Good afternoon mates!

I have read an issue about this problem, but the reporting user was not too helpful.

I try to explain it in a little more detailed way.

I'm playing periodically CS 1.6, last time i played it was before the update, that took d3d away.

I have a Samsung NP300E5Z notebook. It has Intel B950 cpu, 4 gb ram, and a dual videocard system, with an Intel HD 3000 and a Geforce gt 520 mx.

I cannot use the dedicated gpu as there is no option for that in the driver. (in other games, i can switch between the 2 gpus.)

When i play i get similar or rather less fps, than in source(w geforce). When somebody turns on the flashlight, or a grenade is exploding in front of me i lose 70-80% of my fps whatever graphics settings I use. If I take it back to 640-480 low graphics, it drops from 100 fps to about 20, on maximum settings it goes from 50-60 to 15.

I tried all of these launch options: -console -noforcemspd -high -noipx -nojoy -nofbo -nomsaa and more which i cannot recall now, but none of them worked.

I tried modifying my integrated gpu's settings (only in wizard mode from performance to quality), but it didn't help either.

It is very funny (in a bad way) that though I can run Starcraft 2, but Counter Strike is unplayable.

Waiting for a good solution patiently,

Peter

L4Z10 commented 11 years ago

oops, I forgot!

I use w7 64 and i tried updating my drivers too!

911r0ck commented 11 years ago

+1 and i think its already posted months back
IT never lagged in D3D mode :(

L4Z10 commented 11 years ago

Is there a way to manually make a hybrid installation with nosteam files to get d3d to work?

I read about it, that nosteam 1.6 still has D3D in it.

Yesterday I've tried to find an altered opengl32.dll, because I read on a forum, that someone managed to solve the problem with that, only the site didn't have the altered file on it. So I typed it into google. I only found tons of wallhack-modified opengl files. So from that I learned that it might be easy to cheat with opengl too.

I read it here, that they pulled out D3D to reduce cheating, am I right? Did they achieve their goal? I think that 90% of cheaters are using nosteam, and that 90% still has D3D to modify wad files, so I really don't get what is the purpose of taking out D3D from the game, making it impossible for players with "9to5 notebook" or dual videocard to play.

Please give us back D3D!

LevShisterov commented 11 years ago

This is a known issue on Intel OpenGL driver. I am not trying to say that this is Intel's problem, but the fact is. The problem is in dynamic lightning. Ones who have dual video configurations like Nvidia Optimus can use Drivers tweak tool to enable usage of Nvidia chip for Half-Life. Tool is called Nvidia Inspector. May be Valve can contact Nvidia to say them to use Nvidia chip rather then Intel for Half-Life. Or at least enable chip selector in the drivers. Or may be there is a way to optimize dynamic lightning for Intel OpenGL driver.

L4Z10 commented 11 years ago

Maaaan!

I would pay you a beer for helping me that much! HERO OF THE DAY!

Tele42 commented 11 years ago

To clarify, is there anything left in this issue report that Valve could take action on?

LevShisterov commented 11 years ago

All is left at same state. Issue with Intel's opengl is not solved. Nvidia drivers still not allow to select discrete chip AFAIK.

MrSchism commented 11 years ago

Judging by the "Hero of the Day" statement and silence for 8 days, I'm assuming this is closed and marking it as such.

The D3D support/drop issue is discussed elsewhere, as is the Intel openGL support (ValveSoftware/steam-for-linux#19) and the Nvidia issue with discrete/dedicated features in game.

LevShisterov commented 11 years ago

Honestly, it is better to solve that issue, then just say that the problem isn't so important. There is a lot of notebooks with dual videochip solutions. Personally I have one. The most easies solution for Valve would be to contact Nvidia and ask them to allow chip selection for Half-Life. Most right solution is to optimize OpenGL renderer for Intel's chip. Pity I am not good in OpenGL development so I can't point out how to do this. But if you will give me the sources, I could try. ;)

MrSchism commented 11 years ago

Valve doesn't have to ask Nvidia for permission to allow chip selection; hardware is made available to software. The software just needs to be aware of the hardware. You mentioned the correct solution above.

If you want to use the low-end graphics, don't run in Optimus/Primus. That requires improving the Intel drivers.

Someone is working on the Intel OpenGL renderer.

If you want to select the specific video device, that's what the Optimus/Primus tools are for. Going around that is just reinventing the wheel at this point. Eventually, having the option to choose may pop-up, especially as the discrete/dedicated duality spreads and becomes the norm.

I wasn't saying anything is not important; this bug is important to many people. I closed it because the initial issue reported was resolved . I didn't finish my last sentence in my last post (not sure why; I may have been in a rush). As-is, I'm not sure where the end of that statement was going, to be honest, but if that's what made my previous post seem dismissive, I apologize.

wokawoka commented 5 years ago

Sorry for resurrecting this issue (after nearly 6 years) but I'm experiencing the same problem while playing an half-life mod (specifically deathmatch classic) on an intel hd4000.

Do you guys by chance know if a command to disable dynamic lighting or any methos to solve the struttering during explosions and light reflection exists? I've already tried with all the console commands I could find but without any improvement. Many thanks

tschumann commented 5 years ago

I think r_dynamic might turn off dynamic lighting.

wokawoka commented 5 years ago

Thanks for replying. Unfortunately, as I also previously tried, the r_dynamic command doesn't solve the problem. Nothing changes between "r_dynamic 0" and "r_dynamic 1".

L4Z10 commented 5 years ago

I have never managed to solve the issue with steam version, had to find an earlier no-steam version where d3d was enabled. I thought switching firmware's preferred card to dedicated would do the trick, but then I did get random lags.

wokawoka commented 5 years ago

mmm, ok ,but then would I be able to connect to servers and play online with such older non steam viersion that kept direct3d rendering?

On my laoptop there's no dedicated GPU, just the intel HD one, and I always enjoyed playing these HL1 mods for many many years always without problems. It's a real pity not being able to do so now (also because the system requirements to run them smoothly are extremely accessible).

From my experience no console command was able to remove the struttering during explosions and light reflections. As a last test I'll try to fiddle a bit with the graphic card driver settings to see if I can improve the situation and eventually report back.

Thanks!