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

Vulkan on Android: the frame isn't updating (ONLY THE FIRST FRAME IS RENDERED) #3242

Open
MohammedKHC opened this issue Jan 23, 2024 · 4 comments

Comments

@MohammedKHC
Copy link

MohammedKHC commented Jan 23, 2024

Describe the bug
It seems like that only the first frame is rendered, but the game loop don't stop, please note that when using Opengl es every thing is working fine.
Please note that vulkan on Linux works fine the problem is on Android

To Reproduce
using https://github.com/Nodrev/bgfx-android-activity for android running
modify samples to use Vulkan backend;
choose the cube sample
you should notice that the cubes doesn't move

Expected behavior
Just work like opengl es.

MORE Context*
My device uses adreno and snap dragon and it's arm64
and i think maybe it has something with #2975

@bkaradzic
Copy link
Owner

using https://github.com/Nodrev/bgfx-android-activity for android running

I'm not going to investigate other repos. Repro has to be inside bgfx repo.

@MohammedKHC
Copy link
Author

Sorry but I really don't understand how to do that, bgfx repo don't have java files for Android, so I can't made something based 100% on bgfx repo, but you don't need to change the native cpp code,
https://github.com/Nodrev/bgfx-android-activity
Is just building bgfx and then link it with MainActivity please take a look at https://github.com/Nodrev/bgfx-android-activity

@truedat101
Copy link

@MohammedKHC I'll take a look on my android device. I am curious myself about the platform support. Is there any newer version of this kind of project? It's unfortunate but this particular repo is 8 years old and only a single pull request to fix support for arm64. Since then Android has moved on. I checked the forks and nothing else.

I found this: https://github.com/LightSun/bgfx-android

about four years old.

Will update. Noting to debug, it's worth putting some logs from your application that reflect the state of the bgfx layer or checkpoints in your own render loop. I agree, one would expect spinning cubes to spin.

Also, you are saying GLES works fine on Android?

@MohammedKHC
Copy link
Author

Hi @truedat101, First sorry for the late response. I wasn't aware of the message..
At the moment I can't send logs, but there wasn't anything special, maybe just try to compile bgfx for Android and use vulkan and tell me if it works?
And yeah GLES works great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants