I'm writing some frames to GIF file using BitmapEncoder. GoToNextFrameAsync runs very fast on most frames (<100ms), but sometimes will lag for several seconds on one frame.
A;
create_task(gifEncoder->GoToNextFrameAsync()).then([this]()
{
B;
});
//long time between A and B ,may be up to 30 seconds lag
What may be wrong?
Or can I set the thread priority?
Thanks!