castano,
@castano@mastodon.gamedev.place avatar

Apparently PVR has a Vulkan layer that enables support gpu timestamps. Has anybody had any success enabling it?

https://developer.imaginationtech.com/downloads/latest-release-notes/#pvrcarbon

matiasgoldberg,
@matiasgoldberg@mastodon.gamedev.place avatar

@castano I never tried but I suspect it must be enabled the same way the validation layers are: You must include them in your jniLibs/arm64-v8a folder

matiasgoldberg,
@matiasgoldberg@mastodon.gamedev.place avatar

@castano And you probably will also have to turn on useLegacyPackaging.

When it's off, *.so are loaded from the apk directly.
When it's on legacy, the *.so are first decompressed into a folder then loaded.

The latter works with a lot more tools since it's a regular folder and a regular file.

castano,
@castano@mastodon.gamedev.place avatar

@matiasgoldberg I've tried bundling it in the APK, but running into some sort of linker error:

failed to load layer library '/data/app/com.ludicon.demo_spark_android/lib/arm64/libVkLayer_PowerVR_gpu_timestamps.so': dlopen failed: library "libdl.so.2" not found: needed by /data/app/com.ludicon.demo_spark_android/lib/arm64/libVkLayer_PowerVR_gpu_timestamps.so in namespace clns-4

castano,
@castano@mastodon.gamedev.place avatar

@matiasgoldberg Oh, looks like these are linux only libraries. Looks like they don't provide them for Android :(

matiasgoldberg,
@matiasgoldberg@mastodon.gamedev.place avatar

@castano libdl.so.2 is available on Android, but it is a system library.

That means (assuming it works on Android) the library would have to be installed on the system. You'd probably need root access.

amonakov,
@amonakov@mastodon.gamedev.place avatar

@castano What. Why is it a layer. Is it because it adds overhead to everything.

castano,
@castano@mastodon.gamedev.place avatar

@amonakov I do not know. PVR devices never had support for GPU timestamps neither in Vulkan nor GLES, but their profiler is able to record them. I imagine it's a performance, stability, or power issue.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • InstantRegret
  • ngwrru68w68
  • everett
  • mdbf
  • modclub
  • rosin
  • khanakhh
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • Youngstown
  • GTA5RPClips
  • slotface
  • kavyap
  • JUstTest
  • ethstaker
  • osvaldo12
  • normalnudes
  • tacticalgear
  • cisconetworking
  • cubers
  • Durango
  • Leos
  • anitta
  • tester
  • megavids
  • provamag3
  • lostlight
  • All magazines