amiantos / aislingeach

Aislingeach is an iOS client for the AI Horde, a distributed open source network of GPUs running Stable Diffusion
https://aislingeach.com
Mozilla Public License 2.0
35 stars 2 forks source link

more robust fetching framework for long running generations that is resilient to the user backgrounding the app or somehow queuing up multiple generations (like an internal database of the queue) #5

Closed amiantos closed 1 year ago

amiantos commented 1 year ago

Partial fix for this last night, using timers and runloops to keep backgrounding and user interactivity from messing with the timers.

amiantos commented 1 year ago

I rewrote everything into a separate module (basically a view model) to handle generations and it seems pretty resilient at the moment to getting paused in the background, but will still lose a generation if the app is fully killed. I think that's okay enough for 1.0.