RedApparat / Fotoapparat

Making Camera for Android more friendly. 📸
Apache License 2.0
3.81k stars 405 forks source link

Zoom lags on certain devices #386

Open CabreraGerardo opened 4 years ago

CabreraGerardo commented 4 years ago

I've tested my app on the Moto G7 Power and the Galaxy S9, and in both on them the setZoom method lags. The zoom starts to appear later and slowly. I'm using java, don't know if that can make it do that.

This is how I create the view:

private Fotoapparat createFotoapparat() { return Fotoapparat .with(this) .into(cameraView) .focusView(focusView) .previewScaleType(ScaleType.CenterCrop) .photoResolution(standardRatio( highestResolution() )) .previewResolution(highestResolution()) .previewFpsRange(highestFps()) .lensPosition(LensPositionSelectorsKt.back()) .focusMode(firstAvailable( continuousFocusPicture(), autoFocus(), fixed() )) .flash(firstAvailable( autoRedEye(), autoFlash(), torch(), off() )) .previewFpsRange(highestFps()) .build(); } I'm on the 2.7.0 version of the library