brownhci / WebGazer

WebGazer.js: Scalable Webcam EyeTracking Using User Interactions
https://webgazer.cs.brown.edu
Other
3.54k stars 536 forks source link

Webgazer runs laggy on Android native code #335

Closed EcouHD closed 8 months ago

EcouHD commented 8 months ago

I am currently trying to develop a native application for android with the help of ionic and I am using webgazer.js as a needed script for my application. I imported webgazer in the index.html like that:

<script src="https://webgazer.cs.brown.edu/webgazer.js?" type="text/javascript"></script>

and use it in ts code with:

declare var webgazer: any;

When I run ionic serve and use my code as a web page there is no problem with the performance of webgazer, also not on my mobile phone (web page hosted via firebase). Only if using ionic cap copy and npx cap run android and running it on my mobile phone the performance is really bad. You can see animation being really slow etc.

Someone knows if or how this can be fixed or has an idea why this occurs? Feel free to ask for more information.

Glad if someone can help me here.

EcouHD commented 8 months ago

Tried it on different devices and there it is not as laggy. Will close the issue because it is none to fix!