I'm writing a Unity app, and i keep experiencing game engine freeze when I use LoadImage on a large JPG, so i decide to try to decode the JPG image on a thread (so as not to freeze the main thread by decoding the JPG on the main thread which is my theory as to why the freeze is happenning).
The plan is, after the thread decodes the JPG, use the main thread to call LoadRawImageData to load the decoded image data into a texture, which should be fast since it doesnt have to decode anything.
To do all that i need to find a JPG decoder package, so in the Visual Studio NuGet package manager i saw the package "LibJpeg.NET" which claims to have no dependencies, but when i try to install the package in my Visual Studio Unity project which uses .Net 3.5 i get the Nuget error
Could not install package 'LibJpeg.NET-ts 2.0.1'. You are trying to install this package into a project that targets '.NETFramework,Version=v3.5', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
Anybody knows how to solve this, or maybe anybody knows another free .NET 3.5 compatible cross platform (Windows/Mac/iOS/Android) JPEG decoder package i can use on a thread in Unity to decode a JPG?