Closed ahmed-shariff closed 1 year ago
Hi, thanks for this! I'd need to do some testing on this. Have you tried running the existing Unit Tests with the Unity Test Runner to see if they pass? Can you think of any other tests to ensure this functionality is working as expected?
The test runner passes all the tests. I'll also go over the tests and see what I can add to it.
I take back what I had said earlier, while there are gains in some place, it seems to be clogging the GC (I think). I'll try out a few other things and see how it pans out. Put in another PR if that works out.
This PR replaces the use of
Thread
withTask
inFileSaver
. I had had a large number of trackers (>50) in one of my scenes and the I/O was a performance bottleneck, which is a big problem for me as it impacts my time calculations. Using tasks allows to use more threads and also is a cleaner interface (and also recommended).