linuxgurugamer Posted June 1, 2023 Author Share Posted June 1, 2023 New release, 1.9.6.3 Added more checks for the mod being enabled or not Added notification dialog if button is clicked and mod is disabled Quote Link to comment Share on other sites More sharing options...
TuckMeIntoBread Posted December 25, 2023 Share Posted December 25, 2023 On 5/12/2023 at 9:35 AM, Mark L said: Hi, I have a problem that has also been mentioned in this thread. It's when Stage Recovery and Real Chutes are both installed together, causing lag/stuttering in the VAB. On 5/14/2023 at 10:44 AM, linuxgurugamer said: Stage Recovery is doing lots of calculations, trying to keep track of all the chutes. What I see happening is the following: You select a part You then start waving that part around. Notice how, when you move the mouse over the rocket, it actually puts down 8 parachutes for a moment, then removes them It's that moment when KSP creates 8 new parachutes, and calls all the modules which are in each part. There are at least three modules in each RC part, so you now are initializing 24 modules, and then almost immediately destroying all those modules. If you don't have a fast computer, you are going to see the lag. Regarding Stage Recovery, it doesn't add any modules to the parts, but, it is doing calculations anytime the ship is modified. With what you are doing, I believe it is being called numerous times per second while your mouse is moving over the ship. Notice that there isn't any lag when the mouse is not over the vessel. The only think I can suggest doing is to increate the VAB Autocalculation delay a bit to try to avoid all the multiple recalculations I've hunted down the source of the issue here. It seemed to be a drastic overuse of Reflection calls to obtain the RealChute assembly, calling it quite literally every time any singular chute part was iterated over! I've opened a pull request that solves this issue by caching the obtained Reflection info. With an i7-13700K I've gone from horribly stuttering for a good 1.5-3.0s every time I pick up/place down a part on large crafts to being buttery smooth. Quote Link to comment Share on other sites More sharing options...
Mark L Posted December 26, 2023 Share Posted December 26, 2023 22 hours ago, TuckMeIntoBread said: I've hunted down the source of the issue here. It seemed to be a drastic overuse of Reflection calls to obtain the RealChute assembly, calling it quite literally every time any singular chute part was iterated over! I've opened a pull request that solves this issue by caching the obtained Reflection info. With an i7-13700K I've gone from horribly stuttering for a good 1.5-3.0s every time I pick up/place down a part on large crafts to being buttery smooth. Good job, hope it gets a fix. Quote Link to comment Share on other sites More sharing options...
linuxgurugamer Posted December 28, 2023 Author Share Posted December 28, 2023 New release, 1.9.7 Thanks to github user @TuckMeIntoBread for this: Optimize Reflection Usage in ProcessRealchute Method. This pull request introduces optimizations to the ProcessRealchute method, significantly improving performance and all but eliminating VAB hiccup/lags related to StageRecovery + RealChute being used in combination. Quote Link to comment Share on other sites More sharing options...
ODSTjoker Posted May 23, 2024 Share Posted May 23, 2024 Hi, Im having an issue with the mod and tweakscale, in the VAB tweakscaled parachutes are calculated correctly in the tweakscale window, but when recovering the stage the scale seems to be ignored. ie. In the vab it says 5 m/s but when recovering it says 20 m/s. Is this a bug or am I doing something wrong? Both mods are installed with CKAN on the latest version with stock parachutes. Thanks in advance! Quote Link to comment Share on other sites More sharing options...
DeadJohn Posted July 15, 2024 Share Posted July 15, 2024 On 5/23/2024 at 10:08 AM, ODSTjoker said: Hi, Im having an issue with the mod and tweakscale, in the VAB tweakscaled parachutes are calculated correctly in the tweakscale window, but when recovering the stage the scale seems to be ignored. ie. In the vab it says 5 m/s but when recovering it says 20 m/s. Is this a bug or am I doing something wrong? Both mods are installed with CKAN on the latest version with stock parachutes. Thanks in advance! 2 months have gone by and I see no one replied. Tweakscale seems to interact inconsistently with Stage Recovery. It's not only parachutes; sometimes other tweaked parts can cause a craft to be heavier or lighter than expected at recovery time and the chutes or engines are inadequate for safe recovery. There are 2 active forks of Tweakscale, one maintained by Lisias and another by JonnyOThan. In CKAN, one is called "TweakScale - Rescale Everything!" and the other is "TweakScale Rescaled". I think parts tweaked with either one don't work perfectly in Stage Recovery. Quote Link to comment Share on other sites More sharing options...
linuxgurugamer Posted July 26, 2024 Author Share Posted July 26, 2024 On 7/14/2024 at 11:59 PM, DeadJohn said: 2 months have gone by and I see no one replied. Tweakscale seems to interact inconsistently with Stage Recovery. It's not only parachutes; sometimes other tweaked parts can cause a craft to be heavier or lighter than expected at recovery time and the chutes or engines are inadequate for safe recovery. There are 2 active forks of Tweakscale, one maintained by Lisias and another by JonnyOThan. In CKAN, one is called "TweakScale - Rescale Everything!" and the other is "TweakScale Rescaled". I think parts tweaked with either one don't work perfectly in Stage Recovery. This mod does not have any knowledge of Tweakscale (TS), therefore when recovering vessels, it doesn't know anything about the change TS makes. It has to do with the way it gets the info, and would probably require a lot of work to make it able to contact either version of TS. Add on to that the headache of trying to support two different versions of TS, and it's just not going to happen anytime soon, sorry Quote Link to comment Share on other sites More sharing options...
Capt. Hunt Posted February 18 Share Posted February 18 I have an interesting issue. I have a booster part that is not interacting with either FMRS or SR. I imagine both mods are supposed to apply universally, so I'm not sure why this might be excluded. Is there a way that I might be able to force SR to see this part? Quote Link to comment Share on other sites More sharing options...
linuxgurugamer Posted February 21 Author Share Posted February 21 On 2/17/2025 at 10:47 PM, Capt. Hunt said: I have an interesting issue. I have a booster part that is not interacting with either FMRS or SR. I imagine both mods are supposed to apply universally, so I'm not sure why this might be excluded. Is there a way that I might be able to force SR to see this part? It would help if you described the issue, including the installed mods and, very specifically, the part which is giving you a problem (please identify the mod the part came from) Quote Link to comment Share on other sites More sharing options...
Capt. Hunt Posted February 21 Share Posted February 21 10 hours ago, linuxgurugamer said: It would help if you described the issue, including the installed mods and, very specifically, the part which is giving you a problem (please identify the mod the part came from) well, quite simply, the part in question (and anything attached to it) doesn't trigger the StageRecovery Part Recovered/Destroyed message when jettisoned, no matter the altitude I jettison it at. Every other part seems to work fine when jettisoned, even other parts from this mod. The mod is an unreleased rework of an old mod that I was helping with a while back. I'm not sure if I can give more details publicly in this thread, but I will PM you more details. I am reasonably sure it is this part, because it also doesn't have the tweakable that asks if you want to use SR or FMRS to recover it in the VAB. Quote Link to comment Share on other sites More sharing options...
Capt. Hunt Posted Thursday at 06:35 PM Share Posted Thursday at 06:35 PM On 2/21/2025 at 2:37 PM, Capt. Hunt said: well, quite simply, the part in question (and anything attached to it) doesn't trigger the StageRecovery Part Recovered/Destroyed message when jettisoned, no matter the altitude I jettison it at. Every other part seems to work fine when jettisoned, even other parts from this mod. The mod is an unreleased rework of an old mod that I was helping with a while back. I'm not sure if I can give more details publicly in this thread, but I will PM you more details. I am reasonably sure it is this part, because it also doesn't have the tweakable that asks if you want to use SR or FMRS to recover it in the VAB. just an update for anyone who was wondering about this. @linuxgurugamer looked at the code and didn't see anything wrong, but removing the offending part and attaching a new one fixed it, so it must have been a problem with the craft file I was using. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.