Repository navigation
Conversation
…es - only the world mesh is occlusion culled The worlds' baked occlusion data culls runtime-created renderers as dynamic objects; at some places (a Khorinis alley) its cells put the camera inside a wall and every VOB, NPC, the hands and the menu panels vanished or got cut, flickering with each degree the head turned. Gothic meshes of VOBs and NPCs and VOB particle effects set allowOcclusionWhenDynamic = false (frustum and our distance culling still apply); everything under the player is checked once a second. The world chunks keep occlusion culling.
JaXt0r
self-requested a review
December 4, 2026 04:25
JaXt0r
requested changes
Dec 4, 2026
Contributor
There was a problem hiding this comment.
This would mean a performance change as elements in front of us but behind a tree or rock would still be rendered. I would rather check the root cause for this issue than having them visible all the time. Please check the issue in detail and assess why it is that way, so that we can keep all 3 cullings for VOBs.
If I remember correctly: In the past the mesh information of objects was wrong for OC. Maybe it's the reason?
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.
What
VOBs, NPCs, the VR hands and the menu no longer vanish at some places. Only the world mesh is occlusion culled now.
allowOcclusionWhenDynamic = falsefor:AbstractMeshBuilder.PrepareMeshRenderer);VobPfxMeshBuilder);VRPlayer, checked every second for renderers added later: hands, held items, menus).Why
Found in the playtest: a save in a Khorinis alley where VOBs and NPCs disappeared when turning, and the menu was cut. Proved with A/B screenshots (same save, same rotation): occlusion culling on, objects gone; off, all there; with this fix and the culling on, all there.
How to test manually
Tested in the editor (the failing save) and in a PC build with the keyboard/mouse VR simulator. Not tested with a headset yet, and nothing on Quest 2 or Quest 3 standalone.
Save/load
Nothing saved.
Known gaps / follow-ups
com.gothic.core.binaries), made with JaXt0r's OcclusionCullingTool. It should be rebaked with the current world scenes and checked on Quest (frame time in Khorinis before/after).