Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invizimals runs slow when opening back camera #17283

Closed
3 of 5 tasks
Costa1005 opened this issue Apr 14, 2023 · 11 comments
Closed
3 of 5 tasks

Invizimals runs slow when opening back camera #17283

Costa1005 opened this issue Apr 14, 2023 · 11 comments

Comments

@Costa1005
Copy link

Game or games this happens in

Invizimals and Invizimals the shadow zone

What area of the game

So everytime i have to capture an invizimal and use the camera it is very laggy, not the game itself but the camera frames, this makes it impossible for me to capture the second invizimal that needs to be scartched cuz it does not detect the movement (i think) however if I user the frontal camera it is not laggy, and while the back camera is laggy , the game UI still runs at a very smooth FPS

Speed seen in PPSSPP

No response

GE frame capture and debug statistics

No response

Platform

Android

Mobile phone model or graphics card

Redmi 11 PRO 5g

PPSSPP version affected

1.14.4

Last working version

No response

Graphics backend (3D API)

OpenGL / GLES

Any other notes or things you've tried

I changed a lot of graphical settings and disaled MIUI battery optimizations since its known to affect some stuff, clear camera cache but the camera lag only happens in game

Checklist

  • Test in the latest git build in case it's already fixed.
  • Search for other reports of the same issue.
  • Try resetting settings or older versions and include if the issue is related.
  • Try changing graphics settings to determine if one causes the slowdown.
  • Include logs or screenshots of issue.
@Panderner
Copy link
Contributor

Can you screenshot to compare the frame rate difference for front and back camera?

@Costa1005
Copy link
Author

Can you screenshot to compare the frame rate difference for front and back camera?

You will not notice difference in actual frame rate, its actually 60fps in both cases, the UI elemtens of the game that overlay the camera image run smoothly, its the camera back camera itself that preforms very laggy in the app

@hrydgard
Copy link
Owner

Ok, good that the UI is keeping up at least. I guess it's possible that we're requesting images of an excessive resolution, or something like that. Haven't looked at the camera code in years... Needs investigating

@Costa1005
Copy link
Author

I guess that would make sense, since back camera has much bigger resolution than front, and my phone as mentioned is a Redmi 11 pro 5g, it has 105 MP in the back camera

@hrydgard
Copy link
Owner

Hm, for some reason our logic chooses the slowest framerate available for previews, which is probably not ideal. For 1.15, I'm not gonna go deep into investigating here, but I'll make it pick the framerate closest to 30fps, which should be good enough.

There's also lots of scope for optimizing the surrounding code, but that's for later. (we do image processing in Java here, for example, just to utilize Android's JPEG encoder (the game expects JPEG images) ). But again, for later.

@Costa1005
Copy link
Author

Is ther a target date/range to expect the update?

@hrydgard
Copy link
Owner

I just merged the fix, so builds should start appearing soon (newer than 1.4.4-1346).

@Costa1005
Copy link
Author

Will there be an android build in the automated builds for this fix?

@hrydgard
Copy link
Owner

Yes, you'll find it here soon (1349): https://buildbot.orphis.net/ppsspp/

@Costa1005
Copy link
Author

Thanks, ill be sure to test and close the issue if fixed

@Costa1005
Copy link
Author

Worked like a charm, camera runs smoothly

@unknownbrackets unknownbrackets modified the milestones: v1.16.0, v1.15.0 Apr 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants