Skip to content

madpingui/Galaxy-DOTS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Galaxy DOTS

This is a practice project for the efficient handling of entities using Unity DOTS.

The project works by instantiating an entity every 0.05 seconds, which is a sphere with an emissive material (simulating a star). Each sphere is instantiated with a scale of 0, and a job is responsible for scaling it to a specific size. Each entity moves toward the center (black hole) and also has lateral movement, creating an orbital motion for each entity. When the entity reaches the center, it is destroyed.

Each star’s properties are randomized within two ranges. These properties include the scale, forward movement speed, and lateral movement speed.

The black hole is simply a large sphere with a shader I found online (properly credited in the project). The background is just a cubic skymap of the Milky Way.

In my tests, I managed to instantiate over 17,000 entities with a stable frame rate of 144 FPS (the refresh rate of my screen).

2024-09-10.18-15-52.online-video-cutter.com.mp4

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages