Killed the last vestiges of ship_model_start/stop.#501
Conversation
|
Excellent! Preliminary review looks good. I will review it more thoroughly tomorrow. Perhaps you can clarify a few things in the meantime:
Also, is there anything that |
|
I think later down the line I'm going to streamline these
Yeah, we may no longer have to call I'll double check to see what's in |
|
Did a minor change to make sure some of the behavior we needed from |
|
Sorry for the delay in getting back to this. Last week was super busy. I see that Following your comment, I looked at the uses of Still curious about my earlier question - "Why add I created a build based on this PR branch and loaded up a mission to test. Almost everything looked good -- submodels rotated properly, and rotating collisions worked. However, when I destroyed the Faustus solar panel, the panel simply disappeared instead of being replaced with its damaged version. Ditto with an Orion turret disappearing. Once these are addressed, I'll give this PR one last test and then approve the merge. I think we can safely defer the |
|
AFAIK, none of the |
|
MageKing is correct about why ship_model_start was not removed in the deprecated ship render function. However, I would not recommend removing it until we're comfortable with the new rendering code. |
|
BTW I won't be making any additional commits to this pull request until the week after. I'm away from home and only have my work laptop. It's not a very good dev environment to do any bug repros or iteration fixes. But in the meantime, can someone verify if those submodels are still disappearing in a build without the code changes in this pull request? |
|
Well. >.< Now that Christmas and New Year's are out of the way, maybe we can close this out. :) @SamuelCho, by "the week after" were you missing a date (e.g. Christmas or New Year's) or did you mean the week after you posted that? Regarding However, given that clarification, I suggest adding a I concur with your recommendation against removing the deprecated functions until we're comfortable with the new rendering code. Per your most recent note, I compared a build using the latest master against a build using your branch. In master, the submodels were properly replaced with their -destroyed variants. In your branch, the submodels simply vanish. |
|
I don't really see any point in keeping the deprecated rendering functions. If we need them in the future, they'll still be there; that's the whole point of version control. Still, I suppose it is a somewhat bigger part of the codebase than some commented-out do-nothing functions...
Did you test the branch by itself, or did you merge it with master first? Because the |
Bleh. I tested the branch by itself. Today I used |
|
I don't think we need a separate |
|
I stand corrected. Looking at the code more closely, there are indeed two Two last questions, though. First, at what point will we be "comfortable" with the new rendering code? I think we should set a date or a criterion for when the deprecated functions will be removed, because otherwise we have a lot of unused complicated code hanging around and making things confusing. After the release of 3.7.4, perhaps? Second, why did you add those two new commits where you merged master into your branch? They make the PR diff significantly more complicated. |
|
Probably so that anyone checking out his branch has the latest master merged in? I would have recommended a rebase though, but ultimately reading the diff against master isn't that hard, via the github Files Changed tab above or manually diffing against master on a local machine. But there are still only three relevant commits in his branch, which I assume is correct. |
|
Yeah, chief is correct as to why I added those two commits. I can close and resubmit this pull request if you want a cleaner pull. |
|
Shouldn't be a need for that, if anything you can always force push over the same branch after rebasing on your machine (git push -f). |
|
Yeah, I did all my code review on the initial commits before master was merged in. I like having a clean PR, but I'm not a stickler for it. Given that I already reviewed the earlier commits and we've been working on this for several weeks, I won't ask you to close and resubmit it. In lieu of a response to the first question I'll assume that 3.7.4 is a good milestone to remove the deprecated functions. With that, I'll merge this and then get to work merging in the updated dumb_rotation code and the revised look_at feature. |
Killed the last vestiges of ship_model_start/stop.
My hopefully last stab on bringing the rest of the code to the
polymodel_instancesystem. This should make us no longer reliant onship_model_startandship_model_stop. What do you think @Goober5000?