tmpvar / livecad

live coding of 3d surfaces and objects
livecad.wtf
53 stars 2 forks source link

add batching #30

Closed tmpvar closed 9 years ago

tmpvar commented 9 years ago

a round trip takes somewhere on the order of ~5ms, and all commands are run sequentially. This becomes a problem when there are hundreds or thousands of ops.

We have it within our power to construct a DAG and ship it in one go to net-oce. This will require more work on the c++ side but is probably worth it.

tmpvar commented 9 years ago

the concept for batching is starting to form up. Recent updates (solids/net-oce-protocol@df1fd562855ae29d317f645b045b76b9373f0423) enable the protocol side of this.

Now I just need 2 things to make this actually function

tmpvar commented 9 years ago

functional as of 2a2e9c8b9776cf154adb29078caa1d39ac533e1a

went a different route and made js generate shape handles so we can resolve them immediately and not wait needlessly on shape generation methods. currently display and other non-shape generating methods are the sync points that ensure all of the required shapes have been created before executing.