Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.
/ Combat-Bees Public archive

My own submission into the Assembly vs DOTS race based on the video series from Lingon Studios.

License

Notifications You must be signed in to change notification settings

OfficialFoneE/Combat-Bees

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Combat-Bees

My own submission into the Assembly vs DOTS race based on the video series from Lingon Studios. You can watch the series here and you can watch my video on this repostitory here.

Fortunatly, with the help of Lingon themself, I was able to run some direct comparison with the assembly versions!

Hardware:

  • 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz
  • NVIDIA GeForce RTX 3060 Laptop GPU
  • 32.0 GB DDR4

Important Numbers:

  • Simulation Time – The CPU time in which all DOTS code ran in the application (per frame).
  • Render Time – The CPU time in which Unity spent preparing rendering and rendering (per frame).
  • Calculated Frame Time – The miliseconds it would take to render one frame at the average FPS.

DOTS Results

Notes:

  • All jobs which relate to the simulation are based directly off Lingon Studio’s C# implementations. Exceptions to this is dead bees and bee rendering. Both could be sped up to better utilization Unity/DOTS.
  • All timings taken within the simulation are averages from a set number of the previous frames. The global min and max of the timings are seen to the right of the average in square brackets.
  • Dead bees are held separately from the alive to ensure there is no way to “fake” performance by having a large number of bees in the dead state.

| 50,000 Bees | FPS: 527 | SimTime: 0.222 ms | RenderTime: 0.041 ms | Calculated Frame Time 1.898 ms |

| 500,000 Bees | FPS: 197 | SimTime: 2.980 ms | RenderTime: 0.803 ms | Calculated Frame Time 5.076 ms |

| 1000000 Bees | FPS: 94 | SimTime: 8.452 ms | RenderTime: 1.627 ms | Calculated FrameTime 10.638 ms |

Assembly Results:

Notes:

  • The Lingon demo only had a generalized FPS counter meaning it did not track mins and maxs. So in order to get the most accurate and fair measurment, the program would be run for at least 30 seconds and only taken once the number was stable. Even so, its likely that all numbers tracked are plus or minus a certain range which I have tried to approximate here.

| 50,000 Bees | FPS: 1291 +- 80 | Calculated Frame Time 0.774 ms |

| 500,000 Bees | FPS: 239 +- 7 | Calculated Frame Time: 4.184 ms |

| 1000000 Bees | FPS: 92 +- 3 | Calculated Frame Time: 10.8670 ms |

About

My own submission into the Assembly vs DOTS race based on the video series from Lingon Studios.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published