ScratchData LogoScratchData
Back to Snow-Cannon_Test's profile

Connected Mesh #2

SNSnow-Cannon_Test•Created January 4, 2018
Connected Mesh #2
12
7
70 views
View on Scratch

Description

This is a new version of my mesh engine I used in "Entangled" Instructions inside. Click the squares to add a connection or remove a connection. In my old engine, I used a method where each head kept trak of it's connections in a list. The list would have each head, it's connections underneath, the next head, etc. The problem was that searching for connections was fairly laggy when you got to 20 or so heads, and rendering took forever. This new engine has the head list with the positions of the heads in order of ID. (first head, second head, third head, etc.) There is a separate list with the id's of the heads in it, in the order added. it lists the first heads id, then the second heads id. This allows for speedy detection and rendering compared to before. After a quick speed test, this project could render 250 heads with 100 different connections, where the previous engine could render about 25 heads and connections before lagging. I'm planning on using this for a game in the near future :)

Project Details

Project ID196075739
CreatedJanuary 4, 2018
Last ModifiedJanuary 4, 2018
SharedJanuary 4, 2018
Visibilityvisible
CommentsAllowed