Repository navigation
Releases
Occlusion Culling 1.2.3
Occlusion Culling 1.2.3 fixes distant LOD flickering when TAA or DLSS is used (for example with New Vegas Reloaded). Updating is recommended.
Fix
- Distant LOD flickering: TAA and DLSS shift the camera by up to half a pixel every frame (jitter). A distant LOD building or ridge that showed only a pixel or two above the terrain could be tested with one shift and drawn with the next, so it was hidden while still visible and blinked against the sky. Every test box now reaches at least 1.5 pixels past its object on screen, which the jitter can't undo. Near objects grow by less than a unit; far LOD chunks by a few dozen units, so hardly anything less gets hidden.
- New INI key
[Queries] fScreenPadPixels(default 1.5; 0 turns it off). If you still see an edge blink, try 2.5.
Install
Requires Fallout: New Vegas 1.4.0.525 and xNVSE. Install the zip with your mod manager, or copy nvse\plugins\OcclusionCulling.dll and OcclusionCulling.ini into Data\NVSE\Plugins\. To update from 1.2.x, replacing the DLL is enough: without the new INI key the default of 1.5 is used.
Source code and full documentation are in this repository. Licence: GPL-3.0.
Occlusion Culling 1.2.2
Occlusion Culling 1.2.2 fixes the cause of blinking walls and fixes flickering lights. Updating is recommended.
Fixes
- Blinking walls, fixed at the cause: the box tested for an object is measured from its own vertices, so it was exactly tight. For a flat piece seen face-on (vault room walls, hall pieces, tables) the side of the box facing the camera lay right on the visible surface; the box and the wall then had the same depth, the test counted the box as covered by its own wall, and the wall blinked. Those boxes are now padded by 4 units. The affected pieces are culled normally again instead of being left out by 1.2.1's guard.
- Flickering lights: with lamp culling on, lamps whose lit area was only just visible (a sliver through a doorway or past a corner) could switch off and on every few frames, relighting everything around them. A lamp is now switched off only after 6 covered answers in a row, and once it comes back on it stays on for at least 45 frames (0.75 s).
- Flicker guard: it now only catches the exact blinking rhythm (hidden at most 2 frames, hidden again within 4 frames, 8 times within 2 seconds), so it no longer gives up on objects while you look around. It stays as a safety net.
Install
Requires Fallout: New Vegas 1.4.0.525 and xNVSE. Install the zip with your mod manager, or copy nvse\plugins\OcclusionCulling.dll and OcclusionCulling.ini into Data\NVSE\Plugins\. To update from 1.2.0 or 1.2.1, replacing the DLL is enough; the INI is unchanged.
Source code and full documentation are in this repository. Licence: GPL-3.0.
Occlusion Culling 1.2.1
Occlusion Culling 1.2.1 fixes objects that could blink on and off.
Fix: blinking objects
Some objects, seen on walls in vault corridors, could vanish for a frame or two out of every four, showing the empty space behind them. Their test box ended up behind their own surface, so whenever the object was drawn it covered its own box and got hidden, and whenever it was hidden the box showed and it came back.
1.2.1 recognises that rhythm (hidden for at most 3 frames, hidden again within 6 frames of reappearing, 6 times within 2 seconds) and stops hiding that object for as long as it stays loaded. Ordinary show-and-hide while you look around or walk past edges doesn't trigger it. Each object it catches is written to logs\OcclusionCulling.log with its form IDs, box size and position, so meshes that do this can be found and reported.
The check costs well under 0.01 ms per frame. An object it catches is simply drawn normally, as it would be without the plugin.
Install
Requires Fallout: New Vegas 1.4.0.525 and xNVSE. Install the zip with your mod manager, or copy nvse\plugins\OcclusionCulling.dll and OcclusionCulling.ini into Data\NVSE\Plugins\. To update from 1.2.0, replacing the DLL is enough; the INI is unchanged.
Source code and full documentation are in this repository. Licence: GPL-3.0.
Occlusion Culling 1.2.0
Occlusion Culling 1.2.0 adds a particle throttle and fixes two issues in 1.1.0. Updating is recommended.
New
- Particle throttle: particle systems (fire, smoke, sparks, steam) on objects you can't see (behind cover, or outside the view) and at least 512 units away are stepped every 3rd frame instead of every frame. The skipped time is caught up at the next step. Particles in view or nearby, and projectiles, explosions and dropped things, always update every frame. New
[Particles]settings:bParticleThrottle,iParticleInterval,fParticleNearDistance.
Fixes
- Pop-in while moving: since 1.0.0, a hidden object's test box grows on screen while you move, so it reappears a frame early. Growing the box could leave thin slivers of the original box uncovered, so an object visible only in such a sliver could stay hidden a frame too long. Grown boxes are now tested together with the original, so growing can only make things reappear sooner.
- Memory over long sessions: the release build of 1.1.0 never cleared its list of NPCs it had seen, so the list slowly grew during a long session. Both of the plugin's lists are now cleared of anything not seen for 600 frames.
- Recycled objects: an object loaded where another one was just unloaded could briefly take over the old one's "hidden" state for its particles. Each entry now remembers which object it belongs to.
Also
- About 250 lines of finished measuring code were removed from the developer build, and the source documentation now covers every feature. No change to what the release build culls.
Install
Requires Fallout: New Vegas 1.4.0.525 and xNVSE. Install the zip with your mod manager, or copy nvse\plugins\OcclusionCulling.dll and OcclusionCulling.ini into Data\NVSE\Plugins\. To update from 1.1.0, replace both files, or add the [Particles] section to your own INI (the defaults apply if it is missing).
- Insert switches all hiding and throttling on and off in game.
Source code and full documentation are in this repository. Licence: GPL-3.0.
Occlusion Culling 1.1.0
Occlusion Culling 1.1.0 culls more of the world and keeps culling in places where 1.0.0 had to stop.
New things it hides
- Land: each loaded cell's ground in its four 2048 x 2048 squares (ground behind buildings, walls and hills). In play, up to 45% of the ~100 loaded squares were hidden on the Strip.
- Distant terrain LOD: the low-detail land beyond the loaded cells, hidden behind mountains and buildings. 20-50% of the chunks in view were hidden.
- Grass: grass groups behind walls, buildings and hills, with a margin for swaying blades. Up to ~60% of the groups in view were hidden.
- Imposters: buildings and landmarks the game shows at any distance are now tested like other objects.
- NPCs you can't see (behind cover, or outside the view, at least 512 units away) update their bone positions every other frame. Their animations, AI and movement still run every frame.
Culling that no longer stops
- Alpha testing: when alpha testing was still on at the test point (grass, fences, foliage), 1.0.0 skipped the whole frame. Near Mojave Outpost that was up to every frame. 1.1.0 now tests in those frames too, with fully opaque test boxes. It still never changes the game's alpha-test or alpha-to-coverage state, so the old speckle problem can't come back.
- Boxes beside or behind you: a box reaching behind the camera used to go untested, and its object or land square was then drawn again. Boxes are now cut at the camera and still tested: 45-67 more boxes per frame in play.
Compatibility
- lStewieAl's Tweaks: it replaces the same game function the land, terrain LOD and grass culling hooks, with a faster copy. The plugin chains through it, and works the same without it.
- Works with New Vegas Reloaded on native D3D9 and DXVK, as before.
Install
Requires Fallout: New Vegas 1.4.0.525 and xNVSE. Install the zip with your mod manager, or copy nvse\plugins\OcclusionCulling.dll and OcclusionCulling.ini into Data\NVSE\Plugins\. To update from 1.0.0, replace both files.
-
Insert switches all hiding on and off in game.
-
New INI settings:
[Candidates]bImposters[Land]bLandCulling,fLandMargin,bTerrainLOD[Grass]bGrassCulling,fGrassMargin[Actors]bAnimThrottle,iAnimInterval,fAnimNearDistance
All are on by default. Set one to 0 to switch that feature off.
-
This build has no measuring log or debug tools. The developer build in the repository has them.
Source code and full documentation are in this repository. Licence: GPL-3.0.
Occlusion Culling 1.0.0
First public release of Occlusion Culling for Fallout: New Vegas: an xNVSE plugin that stops the game from drawing what the graphics card has proven is completely hidden behind other things. Only the main view is affected; game logic, AI, physics, shadows and reflections are untouched.
What it hides
- Objects: tight boxes measured from each mesh's own vertices, following the object's rotation.
- NPCs and creatures (never the player): their box follows them every frame.
- Doors, activators and terminals: the same as NPCs.
- SpeedTree trees and shrubs: the Mojave scrub, oaks and bushes.
- Lamps: a lamp whose whole reach is covered is switched off for the main view.
Results (measured with Insert switching hiding on and off in the same spot)
| Area | Hiding off | Hiding on |
|---|---|---|
| Freeside | 30 fps | 46 fps |
| Vault 21 corridors | 48 fps | 82 fps |
Dense towns and lamp-lit interiors gain the most. Open ground stays about even.
Install
Requires Fallout: New Vegas 1.4.0.525 and xNVSE. Install the zip with your mod manager, or copy nvse\plugins\OcclusionCulling.dll and OcclusionCulling.ini into Data\NVSE\Plugins\.
- Insert switches hiding on and off in game, with a message in the corner.
- Settings are in
OcclusionCulling.ini. This release ships the values that measured best in play:fMinRadius40, 1000 tests per frame, distant LOD on, lamp culling on,fRevealDepth150.
Notes
- Compatibility:
- Works with New Vegas Reloaded (tested with the P83 playtest and the
nvr-dxvk-computebuild), both on native D3D9 and on DXVK. - Its hooks chain with other plugins that hook the same calls (NVR's
KeepLampsInView, its F10 profiler).
- Works with New Vegas Reloaded (tested with the P83 playtest and the
- Pop-in: answers come back one frame later. While you move, hidden things' test boxes grow on screen so they reappear a frame early. Lower
fRevealDepthif you still see pop-in stepping out from behind walls, raise it for more culling while moving. - This build has no measuring log or debug tools. The developer build in the repository has them (log blocks, debug boxes, compare key).
Source code and full documentation are in this repository. Licence: GPL-3.0.