Loading...
  OR  Zero-K Name:    Password:   

Post edit history

reclaim the lag

To display differences between versions, select one or more edits in the list using checkboxes and click "diff selected"
Post edit history
Date Editor Before After
2/7/2024 1:08:48 AMAUrankSmokeDragon before revert after revert
2/7/2024 1:08:26 AMAUrankSmokeDragon before revert after revert
Before After
1 dont use this it causes memory crash i have a fix but ill test it before i post it 1 dont use this it causes memory crash i have a fix but ill test it before i post it
2 \n 2 \n
3 scratch that ill just post back here if it breaks 3 scratch that ill just post back here if it breaks
4 \n 4 \n
5 this seems to work so far... 5 this seems to work so far...
6 \n 6 \n
7 for name, ud in pairs(UnitDefs) do 7 for name, ud in pairs(UnitDefs) do
8 if ud.featuredefs then 8 if ud.featuredefs then
9 for _, wd in pairs(ud.featuredefs) do 9 for _, wd in pairs(ud.featuredefs) do
10 if wd.object then 10 if wd.object then
11 wd.object = [[emptyModel.s3o]] 11 wd.object = [[emptyModel.s3o]]
12 end 12 end
13 end 13 end
14 end 14 end
15 if ud.featuredefs then 15 if ud.featuredefs then
16 for _, wd in pairs(ud.featuredefs) do 16 for _, wd in pairs(ud.featuredefs) do
17 if wd.blocking then 17 if wd.blocking then
18 wd.blocking = [[false]] 18 wd.blocking = [[false]]
19 end 19 end
20 end 20 end
21 end 21 end
22 end 22 end
23 \n 23 \n
24 no more lag and it leaves the reclaim on the ground but its hard to find because its invisible 24 no more lag and it leaves the reclaim on the ground but its hard to find because its invisible
25 \n
26 Zm9yIG5hbWUsIHVkIGluIHBhaXJzKFVuaXREZWZzKSBkbwogIGlmIHVkLmZlYXR1cmVkZWZzIHRoZW4KICAgIGZvciBfLCB3ZCBpbiBwYWlycyh1ZC5mZWF0dXJlZGVmcykgZG8KICAgICAgaWYgd2Qub2JqZWN0IHRoZW4KICAgICAgICB3ZC5vYmplY3QgPSBbW2VtcHR5TW9kZWwuczNvXV0KICAgICAgZW5kCiAgICBlbmQKICBlbmQKICBpZiB1ZC5mZWF0dXJlZGVmcyB0aGVuCiAgICBmb3IgXywgd2QgaW4gcGFpcnModWQuZmVhdHVyZWRlZnMpIGRvCiAgICAgIGlmIHdkLmJsb2NraW5nIHRoZW4KICAgICAgICB3ZC5ibG9ja2luZyA9IFtbZmFsc2VdXQogICAgICBlbmQKICAgIGVuZAogIGVuZAplbmQ=