I have a very strange problem. I am using a WPF application to retrieve image frames from a device. The communication with the device is done by calling the c++ dll
like this
[DllImport(DLL_FILE_PATH, CallingConvention = CallingConvention.Cdecl)]
public static extern uint Acquisition_Init();
When I run a build from Visual Studio 2022 (Release or Debug) - the application runs and frames coming at 45 FPS.
But when I run just builded .exe file from Release folder - FPS reaches max 30 FPS. What could be the reason for this strange behavior?
Since when does a program run through Visual Studio work faster and better than a simple Release version?