WurstModders / WurstMod

Deli mod for H3VR to load custom scenes into the game!
MIT License
24 stars 2 forks source link

Question about occlusion culling #11

Closed devyndamonster closed 4 years ago

devyndamonster commented 4 years ago

Does baked occlusion culling get exported with a map? I've been noticing that areas where occlusion culling should be working don't seem to have the performance expected.

In the picture below, the occlusion culling is visualized in unity. Yet, in game when the player is facing towards the center of the map, there is still more lag than if they were facing away from the center.

culling

Nolenz commented 4 years ago

I'm fairly certain they are exported properly, I remember when I first started generating them I noticed better performance in my testing. Could have been a placebo effect though. I will try to investigate this a bit more closely.

Realtime lights seem to cause horrible performance, though. Try testing without your lights?

devyndamonster commented 4 years ago

The lighting is baked, not realtime. I'm going to continue investigating. It could be that aggressive occlusion culling is actually hurting performance since occlusion itself has a cost.