CSM.Dev

Обнаглевший hlrad...

Вобщем суть пробелемы такая:
Решили с другом поприкалываться в хл1 на собственно-созданной карте. Карта по сути небольшая и в ней ничего такого особенного нет. НО! При ее компиляции hlrad начинает в арифметической прогрессии кушать оперативную память... То есть начиная с 40-60 метров доходит постепенно аж до 1,7 Гб (в сумме получется более 2 Гб)!!! затем стопорится и завершается "успешно". То есть ошибка "Memory allocation failure" - это понятно, не хватило ему оперативы (у меня на компе 2 гига всего). В результате в карте все, как надо, но без света. То есть он есть, но равномерен и карта при этом лагает.. короче свет недокомпилился..

И вот вопрос: разве hlrad должен потреблять почти 2 гига оперативы и даже больше (если бы была такая возможность, будь ее побольше у меня на компе), на небольшой карте? Источников света там немного

Я даже потом специально создал карту: в ней одна комнатка 1536х1536х1024 и 4 направленных лампочки, почти в углах комнаты: все равно hlrad пытается сожрать всю оперативу, затем swap-file, пока он не закончится..

Логфайл на всякий случай:

Code:
hlcsg v2.5.3 rel (May  2 2001)
Based on Valve's version, modified with permission.
Submit detailed bug reports to ([email protected])
-----  BEGIN  hlcsg -----
Command line: C:\PROGRA~1\VALVEH~1\ZONNER~1\ZONNER~1\hlcsg.exe "c:\program files\valve hammer editor\maps\dniwe_2"

-= Current hlcsg Settings =-
Name                 |  Setting  |  Default
---------------------|-----------|-------------------------
threads               [       2 ] [  Varies ]
verbose               [     off ] [     off ]
log                   [      on ] [      on ]
developer             [       0 ] [       0 ]
chart                 [     off ] [     off ]
estimate              [     off ] [     off ]
max texture memory    [ 4194304 ] [ 4194304 ]
priority              [  Normal ] [  Normal ]

noclip                [     off ] [     off ]
onlyents              [     off ] [     off ]
wadtextures           [      on ] [      on ]
skyclip               [      on ] [      on ]
hullfile              [    None ] [    None ]
min surface area      [   0.500 ] [   0.500 ]
brush union threshold [   0.000 ] [   0.000 ]

Wadinclude list :
[zhlt.wad]


entering c:\program files\valve hammer editor\maps\dniwe_2.map
CreateBrush:
 (0.14 seconds)
SetModelCenters:
 (0.00 seconds)
CSGBrush:
 (0.20 seconds)
Using WAD File: \program files\counter-strike 1.6\valve\halflife.wad
Using WAD File: \program files\counter-strike 1.6\valve\decals.wad
added 4 additional animating textures.
Texture usage is at 0.37 mb (of 4.00 mb MAX)
0.45 seconds elapsed

-----   END   hlcsg -----



hlbsp v2.5.3 rel (May  2 2001)
Based on Valve's version, modified with permission.
Submit detailed bug reports to ([email protected])
-----  BEGIN  hlbsp -----
Command line: C:\PROGRA~1\VALVEH~1\ZONNER~1\ZONNER~1\hlbsp.exe "c:\program files\valve hammer editor\maps\dniwe_2"

-= Current hlbsp Settings =-
Name               |  Setting  |  Default
-------------------|-----------|-------------------------
threads             [       2 ] [  Varies ]
verbose             [     off ] [     off ]
log                 [      on ] [      on ]
developer           [       0 ] [       0 ]
chart               [     off ] [     off ]
estimate            [     off ] [     off ]
max texture memory  [ 4194304 ] [ 4194304 ]
priority            [  Normal ] [  Normal ]

noclip              [     off ] [     off ]
nofill              [     off ] [     off ]
notjunc             [     off ] [     off ]
subdivide size      [     240 ] [     240 ] (Min 64) (Max 240)
max node size       [    1024 ] [    1024 ] (Min 64) (Max 4096)


BSP generation successful, writing portal file 'c:\program files\valve hammer editor\maps\dniwe_2.prt'
0.73 seconds elapsed

-----   END   hlbsp -----



hlvis v2.5.3 rel (May  2 2001)
Based on Valve's version, modified with permission.
Submit detailed bug reports to ([email protected])
-----  BEGIN  hlvis -----
Command line: C:\PROGRA~1\VALVEH~1\ZONNER~1\ZONNER~1\hlvis.exe -full "c:\program files\valve hammer editor\maps\dniwe_2"

-= Current hlvis Settings =-
Name               |  Setting  |  Default
-------------------|-----------|-------------------------
threads             [       2 ] [  Varies ]
verbose             [     off ] [     off ]
log                 [      on ] [      on ]
developer           [       0 ] [       0 ]
chart               [     off ] [     off ]
estimate            [     off ] [     off ]
max texture memory  [ 4194304 ] [ 4194304 ]
priority            [  Normal ] [  Normal ]

fast vis            [     off ] [     off ]
full vis            [      on ] [     off ]


 351 portalleafs
1216 numportals
BasePortalVis:
 (0.11 seconds)
LeafThread:
 (46.28 seconds)
average leafs visible: 196
g_visdatasize:12942  compressed from 15444
46.41 seconds elapsed

-----   END   hlvis -----



hlrad v2.5.3 rel (May  2 2001)
Based on Valve's version, modified with permission.
Submit detailed bug reports to ([email protected])
-----  BEGIN  hlrad -----
Command line: C:\PROGRA~1\VALVEH~1\ZONNER~1\ZONNER~1\hlrad.exe -dscale 1 -extra "c:\program files\valve hammer editor\maps\dniwe_2"

-= Current hlrad Settings =-
Name                | Setting             | Default
--------------------|---------------------|-------------------------
threads              [                 2 ] [            Varies ]
verbose              [               off ] [               off ]
log                  [                on ] [                on ]
developer            [                 0 ] [                 0 ]
chart                [               off ] [               off ]
estimate             [               off ] [               off ]
max texture memory   [           4194304 ] [           4194304 ]
priority             [            Normal ] [            Normal ]

vismatrix algorithm  [          Original ] [          Original ]
oversampling (-extra)[                on ] [               off ]
bounces              [                 1 ] [                 1 ]
ambient light        [ 0.000 0.000 0.000 ] [ 0.000 0.000 0.000 ]
maximum light        [           256.000 ] [           256.000 ]
circus mode          [               off ] [               off ]

smoothing threshold  [            50.000 ] [            50.000 ]
direct threshold     [            25.000 ] [            25.000 ]
direct light scale   [             1.000 ] [             2.000 ]
coring threshold     [             1.000 ] [             1.000 ]
patch interpolation  [                on ] [                on ]

texscale             [                on ] [                on ]
patch subdividing    [                on ] [                on ]
chop value           [            64.000 ] [            64.000 ]
texchop value        [            32.000 ] [            32.000 ]

global fade          [             1.000 ] [             1.000 ]
global falloff       [                 2 ] [                 2 ]
global light scale   [             1.000 ] [             1.000 ]
global gamma amount  [             0.500 ] [             0.500 ]
global sky diffusion [             1.000 ] [             1.000 ]

opaque entities      [                on ] [                on ]
sky lighting fix     [                on ] [                on ]
incremental          [               off ] [               off ]
dump                 [               off ] [               off ]


5332 faces
Create Patches : 60271 base patches
0 opaque faces
241433 square feet [34766464.00 square inches]
24 direct lights

BuildFacelights:
 (95.78 seconds)
visibility matrix   : 216.5 megs
BuildVisLeafs:
 (137.08 seconds)
MakeScales:
Error: Memory allocation failure
Description: The program failled to allocate a block of memory.
Howto Fix: Likely causes are (in order of likeliness) : the partition holding the swapfile is full; swapfile size is smaller than required; memory fragmentation; heap corruption

Error: Memory allocation failure
Description: The program failled to allocate a block of memory.
Howto Fix: Likely causes are (in order of likeliness) : the partition holding the swapfile is full; swapfile size is smaller than required; memory fragmentation; heap corruption


-----   END   hlrad -----
..и если надо будет, могу скинуть потом исходник карты

Просто реально не знаю, как исправить эту ошибку.. Перепробовал компиляторы с разных сайтов и даже где-то читал, что в среднем hlrad вообще жрет около 256-384 метра, а тут более 1,7 Гб... помогите плиз!