What's the deal with Precashing?

ShooterShooter Join Date: 2013-01-25 Member: 182094Members
I know it's supposed to run whenever a map is loaded for the first time, but it keeps running no matter how many times I load the same map. Seems weird and it adds a good 30 seconds to the loading time.

Comments

  • SixtyWattManSixtyWattMan Join Date: 2004-09-05 Member: 31404Members
    Yes, lets cache all the maps. Nothing could go wrong.
  • AurOn2AurOn2 COOKIES! FREEDOM, AND BISCUITS! Australia Join Date: 2012-01-13 Member: 140224Members, Forum Moderators, NS2 Playtester, Forum staff
    problem is, it does it every time, i spend the same ammount of loading time veil the first time i played it that hour, and the second time i played it that hour. so it's kind of a useless thing.
  • DavilDavil Florida, USA Join Date: 2012-08-14 Member: 155602Members, Constellation
    Precaching loads all of the entities and effects into memory so you aren't loading them while playing, saves a lot of time on rendering. Generally I find precaching takes some time on the first map load but not a whole lot on the ones after that. But basically if it didn't exist, performance would be a much bigger issue.
  • AzaralAzaral Join Date: 2012-11-19 Member: 172408Members
    It would be nice if it just loaded all common things once (IE all the alien and marine models). This would provide a cut. The rest has to be loaded per map and then deleted once you change map. If it loaded everything, you would need like 2gb of video ram and 10gb of system ram or some craziness.
  • DavilDavil Florida, USA Join Date: 2012-08-14 Member: 155602Members, Constellation
    <!--quoteo(post=2066832:date=Jan 25 2013, 08:16 PM:name=Azaral)--><div class='quotetop'>QUOTE (Azaral @ Jan 25 2013, 08:16 PM) <a href="index.php?act=findpost&pid=2066832"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->It would be nice if it just loaded all common things once (IE all the alien and marine models). This would provide a cut. The rest has to be loaded per map and then deleted once you change map. If it loaded everything, you would need like 2gb of video ram and 10gb of system ram or some craziness.<!--QuoteEnd--></div><!--QuoteEEnd-->
    That's umm pretty much how it works.
  • AshTraiAshTrai Join Date: 2003-04-27 Member: 15878Members
    why does it "waiting for server" ... can't it load stuff client side while it waits for the server?
  • StripetailStripetail Join Date: 2013-01-10 Member: 178543Members
    If you don't want to wait as long to enter an online match, just setup an explore mode server, password it with something silly, then enter it. Walk away from your computer get a glass of water, when you come back and it's done leave that server and go to the server you want to play with. Fast loading times from there out. :D
  • MakasMakas Join Date: 2013-01-15 Member: 179678Members
    <!--quoteo(post=2066888:date=Jan 25 2013, 09:32 PM:name=Stripetail)--><div class='quotetop'>QUOTE (Stripetail @ Jan 25 2013, 09:32 PM) <a href="index.php?act=findpost&pid=2066888"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->If you don't want to wait as long to enter an online match, just setup an explore mode server, password it with something silly, then enter it. Walk away from your computer get a glass of water, when you come back and it's done leave that server and go to the server you want to play with. Fast loading times from there out. :D<!--QuoteEnd--></div><!--QuoteEEnd-->
    It... Actually would be faster to do the other way around...
  • IeptBarakatIeptBarakat The most difficult name to speak ingame. Join Date: 2009-07-10 Member: 68107Members, Constellation, NS2 Playtester, Squad Five Blue, NS2 Map Tester, Reinforced - Diamond, Reinforced - Shadow
    I'm fine with precaching but I'm a little annoyed that it can take up to a minute for my heads up display to show up in the game. Couldn't hud elements be precached as well?
  • HivelordHivelord Join Date: 2003-06-21 Member: 17567Members, Reinforced - Shadow
    I don't know about anyone else, but when I first start a game and join in I always get a slight stutters whenever a new effect like gorge spit or something first appears on my screen. Very annoying.
  • AshTraiAshTrai Join Date: 2003-04-27 Member: 15878Members
    <!--quoteo(post=2066905:date=Jan 26 2013, 06:36 AM:name=IeptBarakat)--><div class='quotetop'>QUOTE (IeptBarakat @ Jan 26 2013, 06:36 AM) <a href="index.php?act=findpost&pid=2066905"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->I'm fine with precaching but I'm a little annoyed that it can take up to a minute for my heads up display to show up in the game. Couldn't hud elements be precached as well?<!--QuoteEnd--></div><!--QuoteEEnd-->
    erm what? I've never had that - HUD is immediate for me. Sounds like something dodgy going on there at your end.

    Just FYI: If u alt tab at the moment <b>Precaching (0%)</b> shows, alt tab straight back to NS2 after like 2 seconds and it will have loaded straight in to the lobby. I don't even have an SSD.
  • ogzogz Join Date: 2002-11-24 Member: 9765Members
    How about pre-caching stuff while we're still in the server browser looking for servers to join?
  • RoobubbaRoobubba Who you gonna call? Join Date: 2003-01-06 Member: 11930Members, Reinforced - Shadow, WC 2013 - Shadow
    <!--quoteo(post=2066921:date=Jan 26 2013, 02:31 AM:name=ogz)--><div class='quotetop'>QUOTE (ogz @ Jan 26 2013, 02:31 AM) <a href="index.php?act=findpost&pid=2066921"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->How about pre-caching stuff while we're still in the server browser looking for servers to join?<!--QuoteEnd--></div><!--QuoteEEnd-->
    Because how does the game know which map you're going to join?


    Precaching used to be mildly annoying when I had NS2 installed on a 1.5TB 7200rpm disk. Now it's on an SSD, it's a matter of a few seconds tops. Not everyone can afford an SSD big enough to put their games on, but steam <i>does</i>allow you to put different games on different drives, and small SSDs easily big enough for 4-5 big new titles are now available for very little cash. I absolutely, thoroughly and wholeheartedly recommend to everyone to investigate SSDs not only for their boot drive, but also for steam games they currently play (if they can't afford an SSD big enough for both)!
  • uffouffo Join Date: 2003-05-03 Member: 16026Members
    edited January 2013
    <!--quoteo(post=2066928:date=Jan 26 2013, 12:35 PM:name=Roobubba)--><div class='quotetop'>QUOTE (Roobubba @ Jan 26 2013, 12:35 PM) <a href="index.php?act=findpost&pid=2066928"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Because how does the game know which map you're going to join?


    Precaching used to be mildly annoying when I had NS2 installed on a 1.5TB 7200rpm disk. Now it's on an SSD, it's a matter of a few seconds tops. Not everyone can afford an SSD big enough to put their games on, but steam <i>does</i>allow you to put different games on different drives, and small SSDs easily big enough for 4-5 big new titles are now available for very little cash. I absolutely, thoroughly and wholeheartedly recommend to everyone to investigate SSDs not only for their boot drive, but also for steam games they currently play (if they can't afford an SSD big enough for both)!<!--QuoteEnd--></div><!--QuoteEEnd-->

    I have my NS2 on SDD and it still spends ridiculous amounts of time caching and creating the shaders every single map load. Usually the game has already started and both teams are half full when I finally get in to the lobby after map change. And I'm playing with fairly powerful rig, there's no FPS stutters for me.

    EDIT: Clocked the process. From Start to lobby it took 1:18 minutes and of that 48 seconds are spent on precaching.
  • RoobubbaRoobubba Who you gonna call? Join Date: 2003-01-06 Member: 11930Members, Reinforced - Shadow, WC 2013 - Shadow
    <!--quoteo(post=2066933:date=Jan 26 2013, 04:45 AM:name=uffo)--><div class='quotetop'>QUOTE (uffo @ Jan 26 2013, 04:45 AM) <a href="index.php?act=findpost&pid=2066933"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->I have my NS2 on SDD and it still spends ridiculous amounts of time caching and creating the shaders every single map load. Usually the game has already started and both teams are half full when I finally get in to the lobby after map change. And I'm playing with fairly powerful rig, there's no FPS stutters for me.<!--QuoteEnd--></div><!--QuoteEEnd-->
    Hmm might be worth you starting a topic on the help forums here: this sounds like something isn't quite right at your end.

    I have 4 mates all with NS2 on SSDs, and we all load in before anyone else. The rest of my machine is about 3 years old, and my SSD is only on SATA 3Gbps, there are plenty of people with FAR more powerful rigs than mine...
  • AurOn2AurOn2 COOKIES&#33; FREEDOM, AND BISCUITS&#33; Australia Join Date: 2012-01-13 Member: 140224Members, Forum Moderators, NS2 Playtester, Forum staff
    <!--quoteo(post=2066853:date=Jan 26 2013, 02:51 PM:name=Davil)--><div class='quotetop'>QUOTE (Davil @ Jan 26 2013, 02:51 PM) <a href="index.php?act=findpost&pid=2066853"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->That's umm pretty much how it works.<!--QuoteEnd--></div><!--QuoteEEnd-->
    that's how it's supposed to work, but it doesn't.
    all it is doing at the moment is doubling load times at all times, instead of doubling it the first time. precaching happens all the time, it recaches every time you reload the map.
  • RautapalliRautapalli Join Date: 2010-07-23 Member: 72710Members, Reinforced - Shadow
    edited January 2013
    <!--quoteo(post=2066964:date=Jan 26 2013, 01:34 PM:name=AuroN2)--><div class='quotetop'>QUOTE (AuroN2 @ Jan 26 2013, 01:34 PM) <a href="index.php?act=findpost&pid=2066964"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->that's how it's supposed to work, but it doesn't.
    all it is doing at the moment is doubling load times at all times, instead of doubling it the first time. precaching happens all the time, it recaches every time you reload the map.<!--QuoteEnd--></div><!--QuoteEEnd-->

    Sounds like your game is broken then, the precaching stage goes through in about 2 seconds for me when it does it the second time, it only takes long the first time.
  • CommunistWithAGunCommunistWithAGun Local Propaganda Guy Join Date: 2003-04-30 Member: 15953Members
    <!--quoteo(post=2066813:date=Jan 25 2013, 08:28 PM:name=Shooter)--><div class='quotetop'>QUOTE (Shooter @ Jan 25 2013, 08:28 PM) <a href="index.php?act=findpost&pid=2066813"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->I know it's supposed to run whenever a map is loaded for the first time, but it keeps running no matter how many times I load the same map. Seems weird and it adds a good 30 seconds to the loading time.<!--QuoteEnd--></div><!--QuoteEEnd-->

    I pre-cache in 2 seconds.

    Time for an upgrade?
  • RoobubbaRoobubba Who you gonna call? Join Date: 2003-01-06 Member: 11930Members, Reinforced - Shadow, WC 2013 - Shadow
    <!--quoteo(post=2067054:date=Jan 26 2013, 12:32 PM:name=CommunistWithAGun)--><div class='quotetop'>QUOTE (CommunistWithAGun @ Jan 26 2013, 12:32 PM) <a href="index.php?act=findpost&pid=2067054"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->I pre-cache in 2 seconds.

    Time for an upgrade?<!--QuoteEnd--></div><!--QuoteEEnd-->
    Yeah about 2 seconds here, as well - I just loaded the game from a cold boot, ran my own server and the precaching stage took less than 2 seconds.

    I'm running an i7 860 at 3.5GHz on a P55 chipset with 8GB of RAM and an AMD HD5780. NS2 is installed on a Plextor M5Pro 512GB.
  • piratedavepiratedave Join Date: 2012-03-10 Member: 148561Members
    ive also got the 1 minute long pre-cache bug, happen on every map change, and this is with a SSD -_-
  • GamerkatzeGamerkatze Join Date: 2012-06-27 Member: 153711Members
    im using a ssd aswell and still get around 30 sec precaching sometimes. the alt tab trick works for me but it still remains an issue.
  • paradoxumparadoxum United Kingdom Join Date: 2012-03-05 Member: 148193Members
    I have an SSD and my game loads blisteringly fast every time, I'm always the first person in the ready room after a map change
  • ScardyBobScardyBob ScardyBob Join Date: 2009-11-25 Member: 69528Forum Admins, Forum Moderators, NS2 Playtester, Squad Five Blue, Reinforced - Shadow, WC 2013 - Shadow
    It used to be that many of the items being precached were loaded as needed during gameplay. It led to tons of hitching/freezing occurring in the worst moments (e.g. in the middle of combat). The precaching delay could certainly be improved, but its an improvement over the previous method.
  • AWhiteAWhite Join Date: 2007-07-26 Member: 61685Members
    Pretty sure particle lag is from particles not being pooled. So it's creating and destroying a million game objects. Has nothing to do with cashing the shader and texture which should be very small files.
  • terrible spammerterrible spammer Join Date: 2013-01-16 Member: 179927Members, Reinforced - Shadow
    My game tended to precache for around a minute even on an SSD. Turning VSYNC off somehow fixes this problem. :/
  • SherlockSherlock Join Date: 2012-11-09 Member: 168595Members
    turn on texture streaming in the options. problem solved.
  • piratedavepiratedave Join Date: 2012-03-10 Member: 148561Members
    <!--quoteo(post=2067421:date=Jan 27 2013, 09:08 AM:name=Sherlock)--><div class='quotetop'>QUOTE (Sherlock @ Jan 27 2013, 09:08 AM) <a href="index.php?act=findpost&pid=2067421"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->turn on texture streaming in the options. problem solved.<!--QuoteEnd--></div><!--QuoteEEnd-->
    nope
  • Ghosthree3Ghosthree3 Join Date: 2010-02-13 Member: 70557Members, Reinforced - Supporter
    edited January 2013
    Like discovered in another thread, turn off vsync and you'll precache MUCH faster. Should be fixed next patch.

    <!--quoteo(post=2067421:date=Jan 28 2013, 04:08 AM:name=Sherlock)--><div class='quotetop'>QUOTE (Sherlock @ Jan 28 2013, 04:08 AM) <a href="index.php?act=findpost&pid=2067421"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->turn on texture streaming in the options. problem solved.<!--QuoteEnd--></div><!--QuoteEEnd-->

    Sure, if you want to crash every 10 minutes in game.
  • uffouffo Join Date: 2003-05-03 Member: 16026Members
    Just came to confirm that turning off vsync fixed my precaching problems. From ~50 seconds it dropped to about 2-3 seconds. This was with nvidia card.
Sign In or Register to comment.