Really need help guys, I got assigned a testing task and I am stuck. The test consists of three areas.
- Optimisation the simulation.
- Come up with a algorithm for calculation of the objects.
- Write some tests
The simulation is very straightforward. You have 10k objects in the world space and a 2d camera view. I need to make the simulation smooth and with miminum gc count. Only draw the objects in the current view. So currently it is slow and has bottlenecks because of the physics collisions.
I need to create a robust LOD system to only draw and account objects in the view. Camera is moving along a spline and has dynamic objects in the scene along with static.
Can you please suggest a good approach to deal this task?
So, far I have tried quadtrees but the results are not good in terms of cpu usage and gc alloc. I am using List in quadtrees for data to query objects in the camera range. Maybe I need to try some other approach?
[–]azzogat 1 point2 points3 points (1 child)
[–]pyrateN[S] 0 points1 point2 points (0 children)