Game terribly laggy for Meta Quest/Quest2 (Android) - android

I was working on my game and noticed terribly low FPS and when running up to a certain area the whole screen goes bonkers and practically "flips" around. I am currently watching as many tutorials as I can to get better FPS but I decided to post here to see if this could be more of a help.
Today was my first time trying to use the profiler and I don't understand it all so I decided to screenshot it and put it in this post.
Heres the screenshot:
Profiler Window Screenshot
Any help is appreciated thanks!

Related

Android rotate really large bitmaps fast

I am trying to rotate really large bitmaps inside android like 3000x5000 px with
matrix.postRotate()
but the problem is that this procedure despite the fact that it is very common inside android and it is working properly...it is slow for such large bitmaps...almost 5 seconds on my phone. Due to project limitations, resizing it is not an option here. Does anyone has another suggestion for faster rotation?
I am using CameraX and onImageSavedCallback.
Thanks in advance.

OpenCv Java Android: Get list of all matching led light with their brightness value.

Link To Image. Please Look at Image to Understand Question
I have a bigger problem to solve but I have to take a small step first.
Bigger Problem Statement: In above-Linked Image, There is a series of Led Lights and a Digit next to them. I have to Read the Digit (Not Those F and R Letters) of Led which is currently Glowing. And this should happen when You open your Android Phone camera and Hold in front of this device. I understand that it is a much bigger Problem and Need a lot of ML and OCR algorithms to solve my problem.
Reduced Problem Statement: But by Myself, I have figured it out a simple way of solving the above problem in a little tricky way (If Possible, Please help). What I want to do is to process this Image using OpenCV Java Library and Somehow read those Switched On or Switched Of LED lights and somehow stored their brightness value values into an Array and It must be sequential From Top to Bottom along with some brightness data so that I can figure out later that this LED was on or off. So using this simple logic I can solve this problem for now without going through all those ML DL and OCR algorithm because I have to deliver it within 3 Days.
So now the issue is that I am new to OpenCV. Till now I have figured it out that using below
public Mat onCameraFrame(CameraBridgeViewBase.CvCameraViewFrame inputFrame) {}
I can Get a Frame from Live Android Camera. and then I can do some processing over this frame/image. Also, I have tried many ad-hoc approaches Which I found over SOF, But nowhere I could figure out How can I solve my problem.
Is there any way to detect all those Switched On/Off LEDs brightness data and can be stored in an array in sequence from Top to bottom?
Any help or approach will be appreciated. Thanks in advance.

Ionic Framework Take Live Video

I've been working with the Ionic Framework for a quite a while now, and while I have been able to find tons of tutorials and examples for taking a picture or video, I haven't seen anyone discuss taking video from the camera and displaying it live in the app so that the user can see what they're about to take a picture or video of. This would be essentially like the native camera app on iOS or Android where the output from the camera is displayed live while the user is getting ready to take a photo or start taking video. I understand that some people have tried to just take single pictures from the camera and update the UI several times a second to make it seem like the video is being streamed straight from the camera, yet I also understand that these attempts are usually plagued with memory leaks, crashes, and tend to have quite a low framerate, causing rough video. If anyone has experience with solving this sort of problem or might have some clues for me, thanks for your input!
it's live streaming and WebRTC is the way to go.
https://webrtchacks.com/webrtc-hybrid-applications/

AndEngine game show black screen before loading

I have developed the Game in AndEngine but it shows black screen for some time before loading.I have so many research but till now I did not found proper answers to remove black screen.Please help me how to resolve this.
it is very difficult for me. please take seriously and help me
The black screen appears after the app is started and stays there until the required graphics resources for the game are loaded into memory. If the black screen annoys you, there are two options I know of:
You can try to make your loading sequence shorter by making your
code as efficient as possible. You can look at tips for this
here.
Another possibility is to have what is called a splash
screen. See this tutorial for how to this in AndEngine.

Andengine Live wallpaper slow reload

After making many live wallpapers in andengine , this is the only problem i still face with andengine.
When i used original extension, When rotating device and returning to home screen from apps there was a blink of screen(unscaled background) and 0,5 sec lag (resources reloading). But i had seen many live wallpapers with out any issue.
And i had seen this problem mainly in some devices, my tab Iberry give this issue where as Samsung tab don't produce this issue, and as this issue don't give out any error, i cant find it as a report for my App.
Problem thread
I had seen this problem being faced by many http://www.andengine.org/forums/live-wallpaper-extension/slow-reload-after-onresume-t4183-70.html
temporary Solution
I had Tried out a solution too https://github.com/gigiigig/AndengineLiveWallpaperExtensionImproved
But it has many other problems, So i hope someone can help to find a solution to the slow reload problem that makes the andengine Live wallpaper extension a Question.

Categories

Resources