OndrejNepozitek / Edgar-Unity

Unity Procedural Level Generator
https://ondrejnepozitek.github.io/Edgar-Unity/docs/introduction
MIT License
817 stars 70 forks source link

Cache room templates geometry #65

Open OndrejNepozitek opened 4 years ago

OndrejNepozitek commented 4 years ago

If we have many room templates, a non-trivial amount of time can be spent to compute the configuration spaces. For example, in the Enter the Gungeon example, it takes more than 1 second to do so. One possible solution to this problem is to somehow cache the results (if we are not able to significantly improve the performance of the computation).

Random ideas:

Next steps:

A partial solution would be to at least cache intermediate results during runtime to make sure that nothing is computed more than once.