Lag in Live view while exporting

I’m working on a plugin that automates video exports.

User select a viewgroup, plug in generate 1 export process for every view.

When I start an export process from my plug-in, Live view is not smooth.

I have lag. (Is the correct term jerks ???)

If I export same cameras from smart client interface I don’t have this problem.

Is it possible to manage the priority of the export process?

Is it possible to have a slower but less demanding process for the machine?

Thanks

What kind export do you do, XProtect format or AVI or MKV? Also, can you please check if CPU is 100% or close to 100%?

_exporter = new VideoOS.Platform.Data.DBExporter() { Encryption = false, IncludePlayer = true };
_exporter.Path =mypath;
_exporter.Init();
_exporter.CameraList = CamList;
bool started = _exporter.StartExport(DateTime.SpecifyKind(startDateTimePicker.Value, DateTimeKind.Local), DateTime.SpecifyKind(endDateTimePicker.Value, DateTimeKind.Local));
if (started)
{
    System.Windows.Forms.Application.DoEvents();
    while (_exporter.Progress < 100)
    {
        Thread.Sleep(500);
        UpdateProgress(_exporter.Progress);
        System.Windows.Forms.Application.DoEvents();
    }
}
_exporter.EndExport();
_exporter.Close();

I export in DB format.

I don’t know how far the CPU is going, because I can’t monitor the client’s environment. Unfortunately I don’t have direct access. What can be the critical issues? CPU / RAM / NETWORK?

If there are any tests to do I can have them run.

PC config: Intel i7, 16gb, nVidia Quadro P600

I confirm you that CPU is not at 100%.

When I start the export and then in the same instance I open the LIVE I have the LAG.

When I open two smartclient windows, one I export and in the other I show the live, I don’t have the LAG.

Any suggestions?

Can you please try unmodified-Smart Client Export plugin sample to see if the same issue happens?

https://doc.developer.milestonesys.com/html/index.html?base=samples/scexport.html&tree=tree_1.html

Can you please try built-in Smart Client Export, main window exporting while live is in a floating window, to see if the same issue happens?

I try with this plugin, but in SCexport there is 1 cam and only 15 second.

I need to edit this plugin and try to export more cam and more time.

Now we test it with all cam and more interval (15000 seconds).