Skip drawing invisible voxel sections#2096
Skip drawing invisible voxel sections#2096Metadorius merged 6 commits intoPhobos-developers:developfrom
Conversation
Metadorius
commented
Feb 8, 2026
- Voxel drawing code now skips sections that are invisible (have all zeros in the transform matrix main diagonal, meaning that the scale is 0% on all axes), thus increasing drawing performance for some voxels (by Kerbiter, ZivDero)
|
Nightly build for this pull request:
This comment is automatic and is meant to allow guests to get latest nightly builds for this pull request without registering. It is updated on every successful build. |
Starkku
left a comment
There was a problem hiding this comment.
LGTM. Just one thing but it is basically 'who cares' kind of deal.
|
I don't quite understand the drawing. Could you elaborate on which |
|
Tested it under SP and MP scenarios, no desync or wrong voxel displaying so far. Can be merged once it's finished |
it is mainly intended to improve performance on section swap animated voxels, most likely that's the only thing it will improve. I am waiting for the conclusive testing results from the community members who requested that and will most likely amend the doc/code. |
# Conflicts: # docs/Fixed-or-Improved-Logics.md # docs/Whats-New.md # src/Misc/Hooks.BugFixes.cpp
|
Waiting on feedback from Danielovich7 on Discord. |
This reverts commit 013d617.
| - Fixed the bug that `DeploysInto` and `UndeploysInto` will make damaged techno lose 1 health. | ||
| - Fixed the issue that the Jumpjet must end its movement before starting the next mission. | ||
| - Fixed an issue where parachute units would die upon landing if bridges were destroyed during their descent. | ||
| - Voxel drawing code now skips sections that are invisible (have all zeros in the transform matrix main diagonal, meaning that the scale is 0% on all axes), thus increasing drawing performance for some voxels. |
There was a problem hiding this comment.
| - Voxel drawing code now skips sections that are invisible (have all zeros in the transform matrix main diagonal, meaning that the scale is 0% on all axes), thus increasing drawing performance for some voxels. | |
| - Voxel drawing code now skips sections that are invisible (have all zeros in the transform matrix main diagonal, meaning that the scale is 0% on all axes), thus increasing drawing performance for uncached voxels which are animated using section swap method. |