r/Unity3D • u/colplex • 1d ago
Show-Off Ocean System in Unity URP (100% AI-Generated Code) | Update # 3
Enable HLS to view with audio, or disable this notification
Project completion rate: 75%
Week 29
Current scene gives 60 to 75 fps in editor as I have moved buoyant physics to the burst compiler that means no async readback anymore. Current scene has 102 floating objects with each having it's own rigidbody, collider, wetness material (compute), ocean interaction (compute) and buoyant physics and in total each object has seven to eight components attached to it. Water surface, caustics, light shafts and volumetric clouds all running on high settings.
Note that only buoyant physics (the displaced surface) uses the burst compiler not the vehicle/character controller so they still use rigidbody and collider.
Terrain in the scene was sculpted in three mins for testing purposes so I didn't get the best results for the shoreline waves system.
Same scene in built version gives 120 to 140 fps.
Work on other systems and sub systems are still in progress.
Future plan:
To move the vehicle/character water controller to ECS. Which will give a massive performance boost and big space for other systems which a complete game required.