Game lags when shooting lmg

SynapseSynapse Join Date: 2007-03-05 Member: 60242Members
I did a search, but the search function works only with words of 4 letters +... my search was Lmg and lag. I don't think I could have been more precise...anyway!

Game runs fine other then server lag but! I get this crazy lag whenever I shoot with the standard machine gun ( LMG ).
I get max 2-3 fps when I start shooting it.

I'm using pistol all the time, since it makes the game unplayable.
If someone has a fix for this it would be nice, maybe to turn off the fire on the nozzle, I don't know :)
«1

Comments

  • Kouji_SanKouji_San Sr. Hινε Uρкεερεг - EUPT Deputy The Netherlands Join Date: 2003-05-13 Member: 16271Members, NS2 Playtester, Squad Five Blue
    Yeah, I've had that happen to me as well during a build pre-build 178 (not sure which), however build 178 seems to have fixed it to some extend, it still dips the FPS some in some instances, especially when more marines are using the bloody thing :/
  • FehaFeha Join Date: 2006-11-16 Member: 58633Members
    It is usually called rifle, which is more than 4 letters.
    You could use "lags", instead of "lag". You could also include "fire", "shoot", "slow", "effect" and such.
    I couldnt test any as search function wont work for me :P.

    But yeah, I know a few posts saying the same, but its a new build now, and I thought that issue was fixed as I last saw posts about it a few months ago, so a new thread is just good imho.
  • SynapseSynapse Join Date: 2007-03-05 Member: 60242Members
    No versions worked on my rig before 178, so the problem has been there and on to 179 too.

    When other marines shoot it, I get lag, but less then when I shoot. Even if there is no one around and I shoot in a wall, the fps drops under 5.
  • digzdigz be still, maggot Join Date: 2002-05-07 Member: 588Members, NS1 Playtester, Forum Moderators, Constellation
    edited June 2011
    I would use<a href="http://www.unknownworlds.com/ns2/forums/index.php?showtopic=109234" target="_blank"> the feedback function either in game or on this website</a>, include your PC specs, driver versions etc with a detailed explanation of the problem.
  • TyphonTyphon Join Date: 2002-11-01 Member: 1899Members
    There are 4 or 5 issues on getsatisfaction reporting this issue. I think that with the recent performance improvements, this issue is more noticeable to more people, but I don't think it's a new issue.
  • AlignAlign Remain Calm Join Date: 2002-11-02 Member: 5216Forum Moderators, Constellation
    <a href="http://getsatisfaction.com/unknownworlds/topics/fps_drops_to_about_10_15_while_firing" target="_blank">Here</a>'s an existing feedback thread about it.
    I got this too in 178, but not 177.
  • PsiWarpPsiWarp Gifted Gorge Richmond, B.C., Canada Join Date: 2010-08-28 Member: 73810Members
    This was there for a long time, when bots would attack on sight. Marine bots using LMG literally freeze the screen for several seconds and I'll be dead even as a Fade.
  • Mkk_BitestuffMkk_Bitestuff Join Date: 2003-01-17 Member: 12407Members
    I have a fix to this issue, it seems the lag is caused by either the muzzle flash or the shell casings. Seeing as how the LMG fires the fastest it may apply to all guns, just not be as noticeable. You can edit one of the LUA files for marine weapons and comment out the muzzle flash/shell casings, which seems to mostly resolve the issue. I can post the edits I made later when I get home.
  • AlignAlign Remain Calm Join Date: 2002-11-02 Member: 5216Forum Moderators, Constellation
    What shell casings?
  • KoruyoKoruyo AUT Join Date: 2009-06-06 Member: 67724Members, Reinforced - Shadow
    edited June 2011
    you can comment that stuff out and it still works on every multiplayer server? - oh man i think im make a lame config, glowing neon model textures - no muzzle flashes, no ambient sound, louder footsteps.... >_>
  • Mkk_BitestuffMkk_Bitestuff Join Date: 2003-01-17 Member: 12407Members
    edited June 2011
    idk about other effects, however the weapon affects are client side. I assume later on the game will include a consistency check on LUA files

    <a href="http://www.mediafire.com/?f0ljgcc8g4c60r4" target="_blank">http://www.mediafire.com/?f0ljgcc8g4c60r4</a> is the link for the file I modified, if you look inside you can see what parts i commented out.

    And the shell casings eject from the side of the gun, haven't you noticed them?
  • Shrike3OShrike3O Join Date: 2002-11-03 Member: 6678Members, Constellation
    Are those casings part of the viewmodel (basically, just part of the weapon animation that the shooter sees), or does it actually create them as an object in the game world?
  • gerryisonfyagerryisonfya Join Date: 2007-11-04 Member: 62826Members
    @Mkk_Bitestuff

    thanks, this fixes the bug for me!

    lg
    Jerry
  • TyphonTyphon Join Date: 2002-11-01 Member: 1899Members
    Me too! Well, mostly, there's still a small dip of 3-5fps when firing, but that's a whole lot better than the 25fps I was losing before!
  • Kouji_SanKouji_San Sr. Hινε Uρкεερεг - EUPT Deputy The Netherlands Join Date: 2003-05-13 Member: 16271Members, NS2 Playtester, Squad Five Blue
    Hmm and this does allow you to play on servers?
  • TyphonTyphon Join Date: 2002-11-01 Member: 1899Members
    Yup.

    I presume that checking that the client is running the official LUA files will come in closer towards release.
  • Kouji_SanKouji_San Sr. Hινε Uρкεερεг - EUPT Deputy The Netherlands Join Date: 2003-05-13 Member: 16271Members, NS2 Playtester, Squad Five Blue
    edited June 2011
    Is it me or does the Lerk spike has a similar issue?
  • TyphonTyphon Join Date: 2002-11-01 Member: 1899Members
    If it does its much less pronounced, at least for me. LMG would drop me from ~30fps to ~10fps. Lerk spikes doesn't do anything near that, if anything.
  • Kouji_SanKouji_San Sr. Hινε Uρкεερεг - EUPT Deputy The Netherlands Join Date: 2003-05-13 Member: 16271Members, NS2 Playtester, Squad Five Blue
    Odd I feel it is the other way around for me.

    Rifle first person about -8FPS and when a buddy is shooting it goes -5FPS
    Lerk first person and when one is shooting me, doesn't really matter it goes -20FPS
  • Kouji_SanKouji_San Sr. Hινε Uρкεερεг - EUPT Deputy The Netherlands Join Date: 2003-05-13 Member: 16271Members, NS2 Playtester, Squad Five Blue
    edited June 2011
    Alright after some testing of all possible combinations. The only one, when not commented out which cause problems is this line of code:

    <!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->line 132: {viewmodel_cinematic = "cinematics/marine/rifle/barrel_smoke.cinematic", attach_point = "fxnode_riflemuzzle"},<!--c2--></div><!--ec2-->

    The others do not cause problems (not the shells either...) And I'm guessing this one will cause problems when other marines are firing, havent actually tested it on a populated server ;)

    <!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->line 133: {weapon_cinematic = "cinematics/marine/rifle/barrel_smoke.cinematic", attach_point = "fxnode_riflemuzzle"},<!--c2--></div><!--ec2-->



    So if you're having troubles, comment out those two lines and you will still have your muzzleflash, but no smoke (which isn't all that visible anyways). Also Mkk_Bitestuff you rule :P
  • PapayasPapayas Join Date: 2010-07-01 Member: 72219Members
    edited June 2011
    <!--quoteo(post=1853555:date=Jun 16 2011, 05:29 PM:name=Synapse)--><div class='quotetop'>QUOTE (Synapse @ Jun 16 2011, 05:29 PM) <a href="index.php?act=findpost&pid=1853555"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->I did a search, but the search function works only with words of 4 letters +... my search was Lmg and lag. I don't think I could have been more precise...anyway!

    Game runs fine other then server lag but! I get this crazy lag whenever I shoot with the standard machine gun ( LMG ).
    I get max 2-3 fps when I start shooting it.

    I'm using pistol all the time, since it makes the game unplayable.
    If someone has a fix for this it would be nice, maybe to turn off the fire on the nozzle, I don't know :)<!--QuoteEnd--></div><!--QuoteEEnd-->

    I also have this problem as well. This is why:

    A) I use the pistol most of the time until I can get a shotgun
    or
    B) I join the Alien side.


    I remember that when I played build 178, I didn't get this lag on Rockdown or Tram. Only on summit.
  • SynapseSynapse Join Date: 2007-03-05 Member: 60242Members
    Thank you very much Mkk_Bitestuff, I didn't try it yet but I'm sure it will work.

    I kinda knew it had something to do with the nozzle effects :)
  • TyphonTyphon Join Date: 2002-11-01 Member: 1899Members
    <!--quoteo(post=1853725:date=Jun 16 2011, 09:53 PM:name=Kouji_San)--><div class='quotetop'>QUOTE (Kouji_San @ Jun 16 2011, 09:53 PM) <a href="index.php?act=findpost&pid=1853725"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Alright after some testing of all possible combinations. The only one, when not commented out which cause problems is this line of code:

    <!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->line 132: {viewmodel_cinematic = "cinematics/marine/rifle/barrel_smoke.cinematic", attach_point = "fxnode_riflemuzzle"},<!--c2--></div><!--ec2-->

    The others do not cause problems (not the shells either...) And I'm guessing this one will cause problems when other marines are firing, havent actually tested it on a populated server ;)

    <!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->line 133: {weapon_cinematic = "cinematics/marine/rifle/barrel_smoke.cinematic", attach_point = "fxnode_riflemuzzle"},<!--c2--></div><!--ec2-->



    So if you're having troubles, comment out those two lines and you will still have your muzzleflash, but no smoke (which isn't all that visible anyways). Also Mkk_Bitestuff you rule :P<!--QuoteEnd--></div><!--QuoteEEnd-->
    Interestingly, this didn't work for me. I uncommented the muzzle flash and shell casing stuff, leaving just the smoke commented out as you suggest, but my FPS still drops in that case.

    Very puzzling how this seems to affect different systems in different ways.
  • Kouji_SanKouji_San Sr. Hινε Uρкεερεг - EUPT Deputy The Netherlands Join Date: 2003-05-13 Member: 16271Members, NS2 Playtester, Squad Five Blue
    Indeed, same goes for the Lerk spikes. My FPS drops dramatically when they go off near me or when I use them myself. But I've heard from someone with a lower specced pc then mine, this only caused the FPS to drop by about 8 instead of the 20 it does on mine...
  • ZurikiZuriki Join Date: 2010-11-20 Member: 75105Members
    The fact that it causes FPS lag at all is a cause for concern. I personally thought it had something to do with tracers and not the rifle cinematics. But I'm going to try removing the cinematics for rifles altogether and see if it helps, I might do the same on the skulk thing, as that causes lag for me too.
  • OutlawDrOutlawDr Join Date: 2009-06-21 Member: 67887Members
    Wish I saw this thread earlier. I replaced the file with Mkk_Bitestuff version and now the Rifle doesn't trash my FPS anymore.

    In the past it would drop the FPS by 25, now it hardly moves... 2-3 less FPS tops.
    Thx Mkk_Bitestuff
  • PapayasPapayas Join Date: 2010-07-01 Member: 72219Members
    I hope this gets fixed in Build 180
  • LaggasaurusLaggasaurus Join Date: 2003-11-13 Member: 22773Members, NS1 Playtester
    Cheers for this actually made it so i could play marine :D

    Out of curiosity is it possible to do something similar with sentry turret muzzle flashes or is that server side? As they're currently making it impossible for me to attack anywhere that has more than a couple sentries without getting <1fps. This tends to lead to a lot of arm flailing and wall blinking :(
  • BackSlashBackSlash Join Date: 2011-07-08 Member: 108978Members
    I believe it has something to do with the fact that Spark (the game engine running NS2) only uses dynamic lighting. Dynamic lighting is very costly, as it's usually tied in with dynamic shadows (which we know NS2 has an abundance of), which, regardless of system spec, is often the main force in bringing those triple digit FPS values down to double's.

    The fact that each muzzle flash is a dynamic light source, means that you're potentially turning a light on/off 4/5 times a second. You can see this by looking at the shadows cast by another players LMG fire, and the area being lit up.

    The game needs optimization in general (even if it is running pretty well as it is), and since we're in what I'd consider mid-closed beta, I wouldn't be too down in the dumps about the iffy performance at times. Optimizations generally come at the end of a production cycle after the feature set is frozen. After all, it's pointless optimizing a non-finished product if you've still got to make changes that could make all that work null and void.
  • LaggasaurusLaggasaurus Join Date: 2003-11-13 Member: 22773Members, NS1 Playtester
    edited July 2011
    Oh yeh I get that as another big source of lag for me is flamethrowers for the exact same reason that they're a massive source of dynamic lighting but removing the flame cone would probably be more frustrating than helpful :D

    Was just looking for a temporary fix really to make late game a little more playable for me.
Sign In or Register to comment.