Devlog Update: Planet Generation and Spawning Enhancements
1. Planet Generation in Universe Class
• Implemented a new Generate method in the Universe class to procedurally generate planets and stars.
• Utilized better scaling to and from parsec level along with integer multiplication for more accurate spatial positioning.
• Added logic to create Star and Planet instances with randomized properties.
• Integrated a batch processing system to handle large-scale generation efficiently.
2. Planet Spawning in StarMap
• Added methods to manage the visibility and spawning of planets based on the camera position.
• Implemented queues to handle the dynamic spawning and despawning of planet instances.
• Ensured that planet instances are instantiated and positioned correctly within the star map.
3. Planet Data Management
• Enhanced the GetVisiblePlanets searching in the Universe class to filter and return visible planets based on the camera's sensor range.
• Updated the planet instance handling in the StarMap to keep track of active planet instances and their corresponding data models.
4. Performance and Optimization
• Introduced batch processing and coroutine-based generation to maintain performance during large-scale planet and star generation.
• Optimized the planet spawning logic to minimize performance overhead during runtime.
Files
Get Subspace
Subspace
Status | In development |
Author | hickagpt |
Genre | Simulation |
Tags | 3D, Dark, Experimental, gamepad, Indie, Procedural Generation, Sandbox, Space, Unity |
Languages | English |
Leave a comment
Log in with itch.io to leave a comment.