View Single Post
  #47  
Old 01-10-2016, 09:35
aswadd's Avatar
aswadd aswadd is offline
Registered User
 
Join Date: Aug 2016
Location: Egypt
Posts: 316
Thanks: 84
Thanked 162 Times in 98 Posts
aswadd is on a distinguished road
auto threads usage for zcm ~ instead of t0 [bat File]
Quote:
@shift
@echo off
setlocal enabledelayedexpansion
color 0a
SET threads=%NUMBER_OF_PROCESSORS%
IF "%threads%"=="" (SET threads=1)
IF "%threads%"=="3" (SET threads=2)
IF "%threads%"=="5" (SET threads=4)
IF "%threads%"=="7" (SET threads=6)
IF /I %threads% GTR 8 (SET threads=8)

IF %threads%==1 (
zcm.exe a -s -v -r -m7 archive.zcm *
) ELSE (
IF %threads%==2 (
zcm.exe a -s -v -r -m7 archive.zcm *
) ELSE (
IF %threads%==4 (
zcm.exe a -s -v -r -m7 -t2 archive.zcm *
) ELSE (
IF %threads%==6 (
zcm.exe a -s -v -r -m7 -t4 archive.zcm *
) ELSE (
IF %threads%==8 (
zcm.exe a -s -v -r -m7 -t6 archive.zcm *
)))))
pls note this will work fine without any problems because i replaced the path of files with * // this is the safest way
so to use it Just copy this batch file & zcm.exe to game folder then launch the batch & it will auto detect threads & compress by threads
the speed of zcm with threads is almost the same as lzma max settings with large dictionary size so it will be good idea to use it

Last edited by aswadd; 01-10-2016 at 09:39.
Reply With Quote