project-navigation
Personal tools

Author Topic: speed up compile_maps.bat  (Read 3244 times)

Offline Muton

  • Sergeant
  • *****
  • Posts: 496
    • View Profile
speed up compile_maps.bat
« on: May 16, 2009, 03:22:34 pm »
Because we need to rebuild all maps continuously
i've modified the build scipt

In fact its faster to use
one ufo2map process by CPUcore (-t 1) and call n processes of ufo2map simultaneously
than to use n threads (-t n)
while n is the ammount of cores.

compile_maps_Muton.bat /clean /1t4core
this will call n processes of ufo2map and set the corresponding affinitymask
On a dual core you'll have 2 process
On a quad core 4 ....

The affinitmask is set by affinity.exe
Its a copy paste project from MS
but buildable by C::B
This tool will be build automatically!

So just run
compile_maps_Muton.bat /clean /1t4core
and you're done

For each process a new cmd will be opend in background
process priority is IDLE (lowest)

[attachment deleted by admin]
« Last Edit: December 07, 2009, 03:58:42 pm by Muton »

Offline BTAxis

  • Administrator
  • PHALANX Commander
  • *******
  • Posts: 2607
    • View Profile
Re: speed up compile_maps.bat
« Reply #1 on: May 16, 2009, 04:01:06 pm »
In fact, -t 2 is slower than -t 1 here.

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools