avose / GLShell

OpenGL Terminal
GNU Lesser General Public License v2.1
2 stars 0 forks source link

Fix Graph Physics to Stop Explosion #44

Closed avose closed 11 months ago

avose commented 11 months ago

The physics calculation still has issues with large directories, like the ".git" dir; the whole thing doesn't just run slow, it blows up.. Maybe capping this is enough, or perhaps also starting the initial state such that the nodes' random positions are spread out more to reduce the forces involved.

avose commented 11 months ago

OK, this didn't turn out to be too hard. I put a cap on the maximum force applied to the node positions, and spread them out a bit more on initial graph creation. Even very large directories seem stable (if a bit slow).