Hi, i need to create an app that auto scan the camera every 0.5s to find a qrcode.
The app works but when i call the funcion
I tried with a separate thread but I can make some funcion like GetPixels32() outside the main thread.
I tried with a Dispatcher, with IJobParallelFor with task…
EVERYTHING freeze my app for a couple of frame when the funcion is called.
can anyone please help me?
to read the qrcode i used this:
Generating a QR code / Scanning a QR code in Unity 3D. Pre-build DLL and sample code from old Unity
Have you used a QR code recently outside of your app? On every phone I use, reading a QR code also freezes the entire phone for a few frames. I’m not sure it is Unity you’re having the problem with, and I’m not 100% sure what all that ZXing DLL attempts to do. You might want to contact the author of that package for more help.
1 Like
Kurt-Dekker:
Have you used a QR code recently outside of your app? On every phone I use, reading a QR code also freezes the entire phone for a few frames. I’m not sure it is Unity you’re having the problem with, and I’m not 100% sure what all that ZXing DLL attempts to do. You might want to contact the author of that package for more help.
Yes of couse i used a lot of that and NONE OF THEM freeze when scan for the code but only when the code is readed correctly.
the point is: I have to do the a task asynk
Can anyone help me?
please someone help me!!!