bkaradzic / bgfx

Cross-platform, graphics API agnostic, "Bring Your Own Engine/Framework" style rendering library.

Home Page:https://bkaradzic.github.io/bgfx/overview.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

MohammedKHC opened this issue · comments

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

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.

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

@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?

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.