CameraChessWeb icon indicating copy to clipboard operation
CameraChessWeb copied to clipboard

Performance optimization

Open saltech1 opened this issue 1 year ago • 1 comments

On my Pixel 7 pro I get roughly 4 FPS, which sometimes feel not stable enough compared to the 40+ FPS on a desktop. Certainly not if I try to use X2 or X4 mode.

I'm considering trying to take a shot and see if there is an opportunity for CPU performance optimization. Was that done? Will such contribution will be accepted?

Not a typescript/client side person, but willing to take an attempt.

saltech1 avatar Mar 30 '24 05:03 saltech1

That matches what I get on my Pixel, it is indeed annoyingly slow compared to the desktop speed.

I tried TFLite before (with int8 quant) but couldn't make any speed improvements on mobile.

Help in this area would be incredibly useful. I can make a fork which strips out all the code except model benchmarking if that interests you?

Pbatch avatar Apr 10 '24 11:04 Pbatch

I've pruned the model so you should get around 1.5x the FPS you were getting before :)

Pbatch avatar May 20 '24 18:05 Pbatch