Author Topic: Mass tile loads taking forever under NWMax/Plus in GMax?  (Read 520 times)

Legacy_OldTimeRadio

  • Hero Member
  • *****
  • Posts: 2307
  • Karma: +0/-0
Mass tile loads taking forever under NWMax/Plus in GMax?
« on: January 02, 2016, 06:46:30 am »


               

I specifically needed to do a mass tile load of Shadooow's exported City Exterior in GMax under NWMax Plus.  I knew it would take a while but it's been about two hours now and I think I'm only just a little bit above 80% done.  This is loading the files from the NWMax rollout where you normally load models from, I think last button at the bottom marked "Mass Tile Load".  The other mass load, in the first or second rollout, I couldn't get to work.  Is there some preferred method for mass tile load when using GMax?


 


Anyway does anyone know off the top of their head if these load times are "normal"?  I realize this is 400+ tiles but it just seems to be taking waaay longer than it should.  It is because "reset controllers" or something like that is turned on for individual models and it's being applied again and again during the mass load?  My GMax is incommunicado at the moment so I can't check, but I don't recall there being much in the way of options that seemed related to the use of that specific (mass tile load) button.


 


Thanks!



               
               

               
            

Legacy_CaveGnome

  • Sr. Member
  • ****
  • Posts: 432
  • Karma: +0/-0
Mass tile loads taking forever under NWMax/Plus in GMax?
« Reply #1 on: January 02, 2016, 10:55:50 am »


               

I don't use that function, but you could cut time loading and saving files from a temp directory located on an SSD, or do the same with a ramdisk (you can easily find free/shareware ones) located in DRAM.



               
               

               
            

Legacy_MerricksDad

  • Hero Member
  • *****
  • Posts: 2105
  • Karma: +0/-0
Mass tile loads taking forever under NWMax/Plus in GMax?
« Reply #2 on: January 02, 2016, 01:39:02 pm »


               

I find that GMAX memory cleanup is inefficient. When you do anything in loops, it just keeps packing crap away and doesn't know to clean up yet, except by the internal cleanup timer. Making your loops smaller would help big time. In the future, separate your tile packs into at least a quarter of the list, and then import them in smaller lots that way. It should increase your speed exponentially. You could alternately change the code a bit in the importer, so that you could do reset controllers later manually. Another thing I have against gmax is that if the memory cleanup timer fires while you are doing something, but the system thinks it is idle, it sometimes wipes memory you are still using, causing a permanent hang. With the size and complexity of the mountain building loops I wrote, I actually got that a lot.


 


Make use of multiple files. Load your first quarter, offset them by some arbitrary x/y position and save them. Load your second quarter and save them. When you finish loading and saving your 4th quarter, merge the other gmax files into one. It is much faster than additional import. And your progressive offset should provide you with a single nicely positioned tile map.



               
               

               
            

Legacy_OldTimeRadio

  • Hero Member
  • *****
  • Posts: 2307
  • Karma: +0/-0
Mass tile loads taking forever under NWMax/Plus in GMax?
« Reply #3 on: January 02, 2016, 05:46:03 pm »


               

@CaveGnome - Good idea, thanks.  I doubled my ram not too long ago (to 8GB) and it could be fun to see how much difference that sort of thing really makes.


 


@MerricksDad - Thank you for the tips.  I'm sure you're right about the speed up on smaller chunks.