-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix MapSOCorrectWrapping removing stock MoHole #120
Conversation
Just blacklists the fix from a body named Moho. Thought it might be handy.
Fix biome and heightmap texture wrapping from pole to pole, even on Moho, This may wipe out the Mohole which is based on said bug, so it's an option.
Implement support for prior option.
Mmmh... This is quite fragile... First, this shouldn't be checking the config on every call. But main issue is that there is no guarantee that in the call stack leading to a
I will investigate how to do this :) |
Interesting. I had no idea it fired that often. Anyhow, I leave this idea in your evidently capable hands. One thing to keep in mind about data hashes vs simple name comparisons though: we have no idea if that will work with say, a rescaled moho, do we? |
It's basically firing for every PQ mesh vertex. So millions of times. Just the fact that we are patching it already has a significant impact on performance.
And on a side note, I don't really like that we are doing this patch at all. Like some other cases we discussed, this is a Kopernicus specific issue, and it should be handled by Kopernicus, not by KSPCF. I just did some limited testing, and this patch in fact significantly alter the poles terrain on all stock bodies, no only Moho. Even with the fix I'm making, it's difficult to actually fix everything reliably because Kopernicus itself is calling those methods during its PSystemSetup override. This for example result in the Mohole anomaly object being slightly misplaced when Kopernicus is installed. I don't argue that the stock code has a bug (which Squad decided to turn into a feature), but these kind of issues are exactly why I started KSPCF with the mission statement that its changes should be as seamless as possible in stock, and to let modded KSP issues be handled by mods, especially when there is already a well established mod handling something. |
Closing this, see #121 |
Closing as you did your own fix. EDIT: or you can lol. |
Just blacklists the fix from a body named Moho. Thought it might be handy.