New script = new message thread?
-
@ustk It won't work for me because I need to repaint things (that script I linked too is not 100% the same as the one I'm using).
-
I assume the new BackgroundTask class is related to this thread? Can it be used to solve my preloader issue? I found an old old forum post where someone had the same issue.
-
@d-healey Yeah it is totally related. If I can build I'm trying today ;)
-
@d-healey I think there‘s a glitch that prevents the timer from being started in your case so spawning another thread won‘t solve it.
Is this reproducable with the code you‘ve linked?
-
@christoph-hart I'll check and make a snippet
-
The above preloadBar code works. I've figured it's something to do with my paint routine, it has a loop in it so I'm investigating that angle now.
-
Is there a way I can trigger the preload callback for testing purposes without just switching sample maps?
-
@ustk said in New script = new message thread?:
@d-healey
Yeah it is totally related.Sorry for misleading you!
-
@ustk said in New script = new message thread?:
@ustk said in New script = new message thread?:
@d-healey
Yeah it is totally related.Sorry for misleading you!
Actually I think it is related, but in a different way. I made another project to test my preload animation and it works fine. I did some more tests in my main project and I think it's because I'm doing other things when the preset loads, those things are "blocking" the animation. So I'm thinking if I move those things to a background task it might solve it.
-
I finally solved my preload issue. Not 100% sure what is causing it but moving my sample loading into the post preset callback made it work.