specklesystems / speckle-unity

AEC Interoperability for Unity through Speckle
https://speckle.systems/tag/unity/
Apache License 2.0
55 stars 20 forks source link

Performance budgeted coroutines #96

Closed JR-Morgan closed 9 months ago

JR-Morgan commented 1 year ago

Now we have support for converting using coroutines, It would be a great idea to implement a way to maximise the number of objects converted each frame while maintaining a target frametime.

This could be implemented in a number of ways.

  1. a frametime budget for the specific co-routine. (easy, simple to imlement, will work nice for continuous receives)
  2. a localsearch/gradient decent algorithm that optimises the number of objects converted while maintaining the total Time.deltaTime of each frame. (might be be hard to implement)
JR-Morgan commented 9 months ago

Closing for now until users request feature Users can implement their own if they need (see VR sample project)