![]() |
Mystery of the lagging starshells revealed!
http://i1231.photobucket.com/albums/...2_224320-1.png
Normally this kind of situation would melt your computer and halt it for 10 seconds. But in this setting there was absolutely no lag. Not even a millisecond! The reason for the lag seems to be quite simple: the light node in starshells materials in material.dat file. I replaced the main node to be just normal 4/100 node and all lag was gone! So it is fixed?! No! :stare: Removing the light node removes also the light from the ships and the light bonus that enemy units would get. So basicly my modded starshells/flares work like this: - working starshells/flares that sparkle in the sky - working waterlevel reflection - absolutely no lag! - no light reflecting to ships - no gameplay effects, ships don't see you any better I made also test and changed TDW's merchant ship starshells and flares, and lag was gone from there also. So basicly we can get "eye candy" effects, distress flares and starshells, but they don't have any real effect. To get this working, somekind of light that SH 5 understands should be added to the flares, but as far as I know, there isn't any. SH 5 doesn't seem to have any actual light sources except the sun and the moon. So I rest my case now, maybe some more HC-modders know how to fix this completely, still I think it's better than nothing! |
Rongel, this is very important breakthrough , TY very much! :up:
Quote:
|
Brilliant finding Rongel; this reduces our field of investigation considerably :up:
Two thoughts: - as I have told you a few weeks ago, SHIII and SH5 starshells are pretty similar when looked on file. Yet, afaik, SHIII isn't affected by the same lagging issue as SH5; at least not as much. This is pretty weird considering that SH5 is an evolution of the previous game, and makes me to wonder if the culprit is some of the (4/2) node attributes which might have changed since SHIII, rather than the node itself. :hmmm: - SH5's and, if memory serves me well, SHIII's starshell omni light effects are animated, probably for simulating light trembling. In SH5, this effect has a rate of one frame every thirtieth of second, and can be a serious fps eater. I am pretty sure that removing the LightAnimation node, or toning its frame rate down, would make the game much smoother when the starshell effect is played, and wouldn't affect starshell's functionality. Quote:
|
Quote:
Quote:
Quote:
When I had made the non-lagging starshell, I tried to add the omni-light to sub-node, but as soon the light node was there, the lagging started again. Even when I changed the omni light to particles.dat lag began again. So to me it seems that there can't be any other reason than the omnilight-node. It lights the ships really beautifully, it's direction is also calculated, and I think this causes stress to computer. There is even a small lag when the effect goes out. My guess is that SH 5's Granny-world doesn't understand the light system from the previous games. Infact there doesn't seem to be any "real lights" in SH 5, even the lights in the bunker and in the sub are just bright 3D objects with a particle halo around, they don't emit actual light at all! |
Quote:
|
Quote:
|
Quote:
|
I noticed something like that.. related to lag.. some time ago. I forgot to tell you.... each time after I install mods... I make a mod for myself.. remove red flare. I modify. 2 lines.. in zones.cfg:
[DistressFlareWarship] Multiplier=1.000000 Flotability=0.000000 Critic Flotation=0.300000 Armor Level=-1 HitPoints=130 Destructible=No Critical=No Effect1=Command_room_crewman_splinter_explosion_es cort, 40 ;Effect2=Distress_Flare_Red, 75 FloodingTime=59.999996 CargoType=None [DistressFlareMerchant] Multiplier=1.000000 Flotability=0.000000 Critic Flotation=0.300000 Armor Level=-1 HitPoints=65 Destructible=No Critical=No Effect1=Command_room_crewman_splinter_explosion_me rchant, 40 ;Effect2=Distress_Flare_Red, 75 FloodingTime=59.999996 CargoType=None I just put in front of thos 2 lines '';'' to not be executed.... if I am remember well, tdw knows that this red flare is resource consuming, but I do not remember if he fixed that! |
That is right stoianm, but I think Rongel was looking for a way to make flare effects lesser GPU intensive, without giving them up. And no, TDW has not addressed the proble yet :salute:
|
Quote:
|
Quote:
|
Quote:
http://www.world-of-smilies.com/wos_...tarwars023.gif |
Thank you :up: Rongel :yeah:
|
Quote:
I'm not that keen on modifying TDWs work, best situation would be that he does the changes. Can't remember what the modding etiquette says... Is it okay to make this kind of patch??? |
Quote:
The new materials are stored in TDW_FXU_Flares_Materials.DAT. I don't think that editing that file and releasing it as a FXU-compatible patch, would break any etiquette rule, especially if we consider that it contains stock effects essentially. On the contrary, you would infringe the rules if you took FXU, changed a few features of it, and released it as whole new mod of your own. :yep: |
All times are GMT -5. The time now is 12:30 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.