BorisTheBrave / DeBroglie

DeBroglie is a C# library implementing the Wave Function Collapse algorithm with support for additional non-local constraints, and other useful features.
https://boristhebrave.github.io/DeBroglie/
MIT License
471 stars 37 forks source link

No idea if the algorithm is stuck, have crashed, or just takes a long time #20

Closed Sajdkick closed 3 years ago

Sajdkick commented 3 years ago

Would love to be able to toggle some kind of console output when running so that i can get an insight into how the algorithm is progressing, just so i know that it's actually doing something!

BorisTheBrave commented 3 years ago

I believe the console program is already coded to output the percentage progress once a minute or every 100 steps, whichever is longer. Is that not working for you?

Sajdkick commented 3 years ago

I'm integrating it with my own code so im not using the prebuilt console application, is there a way to implement that myself?

BorisTheBrave commented 3 years ago

Yes. Do not call Run, instead call Step inside of a while loop, and check the status each iteration. You can add any other checks or logging to the loop.

On Fri, 30 Jul 2021, 06:54 Sajdkick, @.***> wrote:

I'm integrating it with my own code so im not using the prebuilt console application, is there a way to implement that myself?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/BorisTheBrave/DeBroglie/issues/20#issuecomment-889647580, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABM3XNQVFDL7ETI4ISO5RDT2I5ALANCNFSM5BCJZS5A .