godotengine / tps-demo

Godot Third Person Shooter with high quality assets and lighting
Other
955 stars 166 forks source link

[3.x] Add occlusion via rooms & portals #142

Open lawnjelly opened 1 year ago

lawnjelly commented 1 year ago

I noticed @Calinou had just added a version with poly occluders, and I figured that the level would run better with the central core area as an internal room.

Portal mode for dynamic objects

This leads to quite a performance increase for me, depending where you are in the level and what you are looking at. It varies from about 20% fps increase outside to as much as 100% increase when in the core area. Of course this depends what you are looking at, what your settings are (and hence your bottlenecks).

PERFORMANCE UPDATE:

In combination with https://github.com/godotengine/godot/pull/33340 and using small screen, with everything else low but shadows on:

Core, just to left of door, looking back (best case)

Starting position, looking at core (worst case)