ValveSoftware / halflife

Half-Life 1 engine based games
Other
3.55k stars 594 forks source link

cs only runs normal after running it the first time (not only source engine games are affected but all games on steam!) fix for me: https://github.com/ValveSoftware/halflife/issues/387#issuecomment-249436648 #387

Closed schoof closed 5 years ago

schoof commented 11 years ago

finally got it fixed: https://github.com/ValveSoftware/halflife/issues/387#issuecomment-249436648

UPDATE: https://github.com/ValveSoftware/halflife/issues/387#issuecomment-90850841

its going to be a long post so bear with me :o)

everytime i install cs it only runs normal like i it should when i start it the first time. after playing it for a while my cs starts to run "slower" and the game reacts strange. what i mean by that is that everything ingame doesnt run as fast/smooth as it should, everything feels choppy!

for example movement, when i try to bunnyhop or russianwalk it just doenst feel right and everything is so much harder to do. even when only strafing left and right i see and feel a noticeable delay from my input and when the game reacts to it! same for shooting, when i spray or even try to tap (single shoots) the shoots feel "heavy", i cant shoot as fast as i normally would and i have to take much bigger pauses between shooting! the consequence is that your weapon recoil is just not right and really hard to control! the screen shaking animation when shooting is also much bigger (especially spraying but you also see it when just shooting single shots). same for awp, when i quickscope its much harder to do because its slower and it just doesnt feel right, after every shot it feels like you are glued to the ground or get pulled to the ground. you can even see it on the animation of your weapons or the screen does when shooting (up and down shaking). for me it looks like the animation doesnt get played correctly from the beginning to the end, it feels choppy.

to sum it up: it feels like the game itself is initiliazed correctly only right after the first start and afterwards not anymore!

im having this problem for a while now, it started in 2009 when i started to play cs again after a long break (been playing cs since 1.0 so im no newbie in regard to cs and now how it should run). i tested different pcs, internetconnections, settings etc. nothing helped. i tested it on different pcs from friends who had the same problem and some of them didnt even know it because they only started to play cs recently and didnt have a comparison to how cs should run. after showing them the difference when starting it the first time again or the methods mentioned below they also could see the difference! i even started to test other cs versions (non steam and older version pre 1.6/steam) and guess what... the problem isnt there, the gameplay runs AND stays like it should! so i think the source of the problem is sth in regard to the steam client itself! so i decided to start my steam client in offline mode and suddenly my cs runs normal like it should!!!

if you arent an experienced cs player (or havent played the other cs versions that run normal) theres a possibility you are so used to this bad gameplay because you have no comparison and/or are have played so long with it! i have seen this phenomenon again and again with people!

how i run the test (create a new game so you have the same conditions every time and can test the gameplay): i would reinstall cs (very time consuming and annoying), or (much easier to do) just delete my cs folder so it gets created again after i start it (doenst work anymore because since cs got updated the gcf files are gone and the cs files are stored in the common folder!). or third method, i would try to crash the hl.exe by doing the following: create new game, open video options and change the gamma or brightness slider! now the game needs to restart and most of the time i would get a hl.exe crash window! when i now restart cs it runs normal like the first time right after installation! sadly this trick only worked for me one time since these updates (when trying to enable the low video mode ingame). i guess sometimes fixing bugs is not that good if they helped you to fight other bugs haha!

i would REALLY appreciate it if you would look into this matter seriously because there are a lot of people that are affected by this problem! if you have questions im willing to help in any form possible (i dont think my hardware specs matter because it happens on different pcs like i mentioned above), because i and many others have spent a lot of time trying to fix it!

p.s.: i think that not only is cs 1.6 affected by this problem but also other goldsrc and even source games (css, cspromod etc)!

tl;dr: not only source engine games have this problem, all games on steam suffer from micro-stutter, unsmooth and delayed inputs, the same games without steam run fine! --> culprit steam client!?!?

EDIT: see my latest post and edits in regard to this topic: its not connected to the source engine but to the steam client itself!

skyscr3am commented 9 years ago

@schoof I disagree with what you say, and the reason is simple. I installed windows 7 on purpose (I had windows 8) to be able to run CS 1.6 NON-Steam. Result? I have the exact same problems that I have the Steam version.

NON-STEAM version runs only slightly better, but on balance the movements, the recoil of the weapons is still busted.

You're probably right that STEAM has to do something, but it is not the only cause. If it were so, then how do you explain that many users do not have these problems?

I think that is closely related to the configuration of the PC and that few details could play a key role, as in the case of audio.

Why I came to the conclusion that something has to do the audio? Simple, whenever I introduced changes to the process hl.exe setting its priorities from low to real-time I noticed improvements in gameplay but deterioration in audio as noise, pop, crack, etc .. I therefore inferred that the audio brings a significant load to the CPU, not so much as sheer power demand but apparently as response time in ms. So I focused on this problem looking for a workaround.

Obviously I posted here because I try on github feedback from you about what I say, my theory is to be demonstrated, but at least to me .. at the moment seems to work well! I do not hide that I fear it's just a passing cloud but excluding all the cause and cooperate we can find a valid solution.

imYEA commented 9 years ago

@skyscr3am have u done your tests , i mean , did u plugged the sound card and tried CS ?? let's suppose that cs will run smoothly and perfectly, don't forget that after every tweak , cs runs goood so you have to test it for 1 week or more ..

skyscr3am commented 9 years ago

@imYEA yeah, i'm agree with u, this is the point.. I modified the *.wav and now CS run much better but i've played only 2 hours with this. I'll try again tonight, fingers crossed.

the game is far from perfect because as I said above by changing the audio files I have weighed a lot (the dimensions are now more than double). despite this, the first thing I noticed was a recoil almost perfect. For example, before the change had to do with the ak47 long pauses by a burst to another because the crosshair was slow to get back into position. Now is really very fast and I can do more consecutive burst without any problem. Sometimes, however, feel that the sound from the headphones will lock up (in phases very confused) as if the workload was too. In all cases than before now is gold.

imYEA commented 9 years ago

@skyscr3am what exactly you did ? coverted from 22 to 44 or the opposite ??

skyscr3am commented 9 years ago

@imYEA exact, i converted all sounds from original frequency of 22,050Khz to 44,100Khz and obviously I set the output frequency of the audio at 44,100

schoof commented 9 years ago

@skyscr3am you ask why only some people are affected by this problem? i would like to know the answer to that question myself! but i also think many people are having this problem without even knowing! im a good example for that: i was playing bad company 2 for nearly 2 years on steam, without knowing that my game ran like garbage in comparison to the origin version! only after finding out that not only cs is having this problem but also other games on steam i came to the conclusion its steam client related!

HeadshotDeluxe commented 9 years ago

Confirm 22khz thing works! @skyscr3am bless on you Tested on win10 + audigy 2 Love you all mates

skyscr3am commented 9 years ago

@HeadshotDeluxe what version of Audigy 2? i need to buy one :p I'm happy for you that worked, let us know if you continue to do so. also I have played all night without LAG

HeadshotDeluxe commented 9 years ago

@skyscr3am Creative Audigy 2 ZS I bought it to test the problem some years ago i'll try to make comparison demos stay tuned

imYEA commented 9 years ago

@skyscr3am @HeadshotDeluxe You both have to test for a long time ... remember that

skyscr3am commented 9 years ago

@imYEA i'm playing CS for 1 day and the gameplay is still perfect.

i can find an economic old sound blaster audigy or audigy 2 or i think also SB Live! for little money. OR u can convert all the sounds to 44100 or 48000hz (Logically then you have to set this value also in windows) it took me a whole day to convert all the sounds one by one (1000 or more files i think)

remember that not all sound cards on the market will allow you to set values so low (as 22050Hz). is a setting that is no longer used for some time (the problem is the drivers) you could play it safe by purchasing a SB Audigy 2 ZS (is PCI not PCI-EX ..no newer motherboard has slots pci)

convert sounds has another disadvantage, when control caching of steam definitely changed files will be overwritten with the originals (for this I made the backup copy of the entire folder) If you want to convert the sounds, not just convert those of CS but you have to convert even those of Half-Life (Valve in the folder)

do it this way, to see if the problem Lag relieves you can start by converting the entire folder "Weapons" and then create a server (LAN) and try if there are improvements (obviously take the test before and after)

andrelip commented 9 years ago

@skyscr3am Can you upload the new sound folder

skyscr3am commented 9 years ago

@andrelip i have modded sounds not the original ones, is a mix from CS:GO and CSS I do not think it's a combination that appeals to everyone

anyway I can try to create a zip for those who want to try, I just a little time I provide.

imYEA commented 9 years ago

@skyscr3am OK , so can u exaplain how to do it in windows XP ? because i have searched but no results... and please make a video . and record yourself playing in a public server,just to prove to everyone that this is "for you" a final fix

HeadshotDeluxe commented 9 years ago

http://rghost.ru/7rjNMNdjX d2 csdm hs only demo 50Mb Do you believe me now?

imYEA commented 9 years ago

@HeadshotDeluxe Why we wouldn't ? -.- ... as i said, you have to keep playing for 1 week or more to see if you'll keep the same performance and the same smoothness of the gameplay. second thing is ... we have to prove that to other people and make these things officially as a final fix ... if the most of us has fixed it ;) and btw , i cant open your demo because of models used in that server where you've played !

HeadshotDeluxe commented 9 years ago

@imYEA why not 1 year or 1 life? wait forever the second day of smooth gameplay http://rghost.ru/6ZVXfnDlz
the same csdm hsonly server 83.222.97.90:27016

andrelip commented 9 years ago

Please use the command timedemo on these records with both 44100 hz and 22hz sound so we could see benchmarks of these approach.

HeadshotDeluxe commented 9 years ago

@andrelip ok tomorrow

imYEA commented 9 years ago

@HeadshotDeluxe nice sarcasm ... but it's not funny -_- simply because many guys said that they have fixed these issues by doing 1 or 2 settings ... and after 1 week they back to say it isn't fixed yet if you don't know what i'm talking about ... take a look here http://forums.steampowered.com/forums/showthread.php?t=781721 and i'm happy for u if it works fine now -.-

HeadshotDeluxe commented 9 years ago

@imYEA i was there all the time from the beggining placebo is strong but not so strong anymore at least for me

imYEA commented 9 years ago

@HeadshotDeluxe then you know that many tweaks work well.. as many guys did there .. and after some days ...it will be "SH!T"

HeadshotDeluxe commented 9 years ago

@imYEA you have nothing to loose wait and you will see actually i understand you very well and we will find it out a bit scary to change my configuration back to default onboard audio >D

well wtf i'll do it right now

HeadshotDeluxe commented 9 years ago

timedemo inf.dem test

OnBoard Creative Audio (16 bit /48 kHz): 14247 frames 77.505 seconds 183.819 fps

PCI Creative Audigy 2 ZS (16 bit /22.05 kHz) + BIOS disabled onboard audio: 14247 frames 71.529 seconds 199.178 fps

YAY!

HeadshotDeluxe commented 9 years ago

one more time 14247 frames 69.379 seconds 205.351 fps

imYEA commented 9 years ago

@andrelip @HeadshotDeluxe what's the point of that ( 14247 frames 69.379 seconds 205.351 fps )

andrelip commented 9 years ago

Please run 3 times each one since theres a delta since first run and the others.

HeadshotDeluxe commented 9 years ago

@imYEA this is not for noobs :) @andrelip i'm lazy today. anyway it's almost pointless. imyea is right so tell me all your testing strategy

imYEA commented 9 years ago

@HeadshotDeluxe after reading some of your previous comments ... i understand that you're a little kid
Sorry guys .. i'ml done here ... good luck to everyone !

HeadshotDeluxe commented 9 years ago

@imYEA how do you know? amazing...

andrelip commented 9 years ago

My point is that running time demo should boost the fps if the audio sample theory is correct. I ask to run it 3 times on each scenario because there's a little difference each time you run this test.

HeadshotDeluxe commented 9 years ago

@andrelip Your logic is clear, but what is next? Fps boost is some indirect consequence. As for me the real value of this nonresampling stuff is resulting independency of mouse feelings/movement against pc performance\rendering. Now it's solid and fast. I hope you got the point. English is my poor forty-second cousin

imYEA commented 9 years ago

@andrelip tried to convert every audio sound to wav 44 khz, nothing is changed, also some sounds doesn't work after this step and i guess the point of using timedemo is the same as timerefresh (timerefresh is limited i know ) and i'm just curious about this ... some guys can get 2000 fps or more with a setup like mine i have AMD athlon x2 64 6000+ 3.0 Ghz + 2G RAM + 9800 GT and the maximum value that i can get is 600 fps while playing ( while spectating i can get 1000 fps ), some players with the same setup get 1500 fps or more ... and i don't understand this point

andrelip commented 9 years ago

You can't use 1500 fps. The physical timer is limited at 1000hz. You processor is not that top of notch and even those that are will hardly maintain 999. Time refresh will get your fps in that instant while time demo will get you an average.

imYEA commented 9 years ago

@andrelip i agree when u've said "Time refresh will get your fps in that instant while time demo will get you an average." but i've seen people having 16K fps .. i know i can't use it physically, but the machine show it anyway in my case .. i can't get more than 600fps while playing ... and some people can get more than 16K look at this : http://www.hltv.org/?pageid=18&threadid=78520 the comment # 17 but what's the point of that , if you have an OP machine but with all these issues :/

julius2k commented 9 years ago

Hi guys Ive been in a huge agony related to unsmooth gameplay untill couple of weeks ago:D found a majestic fix which seemed to help me a lot;) and since i have only 75hz its not the best recoil i can get but its way smoothier than before. Tried all that shit in this topic and legendary one in steampowered. Nothing helped, but this. Dont bother urselves changing audio stuff tried that too got even shittiest quality ever ( telephone one) and it improved only a tiny bit.:)...

andrelip commented 9 years ago

[julius2K] You forgot to tell the fix you found.

imYEA commented 9 years ago

@julius2k what is this majestic fix so ?!

nidzakv commented 9 years ago

Red dots after 34 minuts of gameplay?

Have anybody expreienced this problem, i think nobody ever had this problem expect me and one more guy on the net..

http://www.dodaj.rs/f/2l/tj/2sxfU8uo/asdasd.jpg

Here is a link..

https://github.com/ValveSoftware/steam-for-linux/issues/2440

imYEA commented 9 years ago

@nidzakv it has nothing to do with the main problem in this thread .. you have an issue related to the netcode maybe .. after 34 min ( as u said ) , try to close CS and open it again .. i'm experiencing this always ..sometime i just need to retry .. or lowering cl_updaterate ..and the red dots will disappear

nidzakv commented 9 years ago

Yes but the gameplay is broken.. I have 10-15ms, but after 34 minutes it feels like 70-80ms, and its not posible to play.. Sorry if its off..

imYEA commented 9 years ago

As i said .. if your problem begins when you see red dots appeared .. it's absolutely network or server problem try what i wrote before Our problem (in this thread ) appears after a fresh install of cs ... even botg choke and loss are 0 .. no red dots... everything is good. .. but the game feels so leggy and hard to do a simple jump or easy shot. .. you will miss any easy shot with these issues Le 2 mai 2015 13:17, "nidzakv" notifications@github.com a écrit :

Yes but the gameplay is broken.. I have 10-15ms, but after 34 minutes it feels like 70-80ms, and its not posible to play.. Sorry if its off..

— Reply to this email directly or view it on GitHub https://github.com/ValveSoftware/halflife/issues/387#issuecomment-98356448 .

julius2k commented 9 years ago

Hi again, so there is what I did. U may not agree with me but it helped me significantly. Im playing with VERTICAL SYNC ON now. And since i have 75hz monitor im forced to play with 75fps. And a very important thing i did was to lower fps by setting fps_max 74. Than it locks at 74.5 on the screen, which eliminates the mouse being unsmooth. so fps_override 1 fps_max 74 and gl_vsync 1 I was surprised that such a ridiculous change may actually help but it happen. At least for me. ANd i can only imagine how it would be sexy to play with 120hz monitors.

imYEA commented 9 years ago

@julius2k how you can play with such a huge input lag ( about 0.3 second = 300 ms of latency ) between what you do and what you see in your monitor i have 100 hz CRT monitor , and i've tried to play with v-synch ON..the game is smooth but slow as hell, i hadn't the chance to notice if there's an improvement or not because of this important lag ,and you can't eliminate this lag so .. HOW ?

julius2k commented 9 years ago

imYEA what do you mean 300ms latency. I play in Lithuanian servers ( mix games) im from Ireland and its 90ms which is hard but since i started using fps_max 74 its really playable and i can be really good despite the ping. To remove that lag id recommend you to lower your fps so it would get locked on screen. lower it by 1. so if its 100hz monitor make it fps_max 99. I think it will work unless there is something else with CRT.

imYEA commented 9 years ago

@julius2k hey ! i've tried this, didn't helped at all, related to the main problem ( hitbox registry ), i can say it helps to eliminate the screen tearing and gives more smoothness of movements but nothing about the registration of bullets, quality of the image is OK , but it's hard to move or to shot i have 2 main problems : unsmooth shots when people starts to shoot ( even if their bullets don't hit me ; i'ts like im blocked in my spot ;a thing that gives to my enemies more advantage to kill easily ) the second thing ; even my reflex is good, it didn't helps at all, i start shooting first, only the both first bullets are registered , the rest goes away, they can turn and give an easy spray or 2 bullets , started to shot people at the chess instead of the head , it didn't help too conclusion : 2 bullets are registered, 3 or 4 aren't, i have to spray about 13 or 14 bullets to kill 1 guy with 4 or 3 registered bullets in his model. ps : the SAME problem in CSGO, the game is smooth compared to CS 1.6 but about registration is the same thing

@schoof where are you, no news ?

schoof commented 9 years ago

@imYEA i have nothing to add to this conversation atm, i thought @skyscr3am and the other guys fixed the problem with their soundcard/sound files stuff (things i tried a couple of years ago without success...) !?!?

HeadshotDeluxe commented 9 years ago

@schoof i tried this stuff a couple years ago too and without success also how can we convince you? let's make a recipe

imYEA commented 9 years ago

@schoof im always facing this sh°t randomly in both CS 1.6 and CSGO ( 128 tickrate ) sound files didn't helped by converting them at all .. maybe i've made mistakes while converting ( from 22 to 44 khz ) ;; when i did it.. no sound was played in game anyway .. i hope someday to play like before .. or to fix CSGO hitbox (because it's the most played atm in the CS scene ) ... and enjoy playing ...

HeadshotDeluxe commented 9 years ago

@imYEA buy audigy2 and test the fix Did someone test it this way?