Remove bug-prone optional pruning#8
Open
elf-alchemist wants to merge 1 commit into
Open
Conversation
Owner
|
How was it decided that the pruning was the problem? Was the I'd rather understand what went wrong than just remove it. In the linked discussion, I see talk of sidedef packing, which ZDBSP doesn't do. Even when this was just an internal node builder, ZDoom needed to unpack packed sidedefs, so packing them here was never considered useful. S.P. I have no idea where the configuration for the Issues tab lives. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A bug that was been uncovered in this Woof! issue (fabiangreffrath/woof#2156 (comment)) is that the sidedef pruning implementation in ZDBSP is flawed and affects SW-rendered source ports that always recalculate the offsets for vanilla segs. It ends up erroneously just moving sidedef indexes around, it seems, and that messes up some ports. This has actually already manifested itself in levels such as Eviternity II map18.
An attempt was previously made to try and counter-act this problem on the port's end, but it did not prove fruitful. The logical conclusion is now that ZDBSP shouldn't trim any geometry at all, and let the modern tooling handle such things. Zero-length lines appear to be still be fair game–though, perhaps, ignoring them instead of outright trimming may be a safer approach.
Bug in Woof!:

It also affects Odamex:

P.S. As a side note, is there any particular reason to keep the issues tab completely closed?