Okay, so one of the recent additions I added to my game engine was built in GPU monitoring for Windows. While not a critical feature, it is something I would like to add for macOS. The goal is to implement something similar to NVPerfHUD (for those who remember what that is) and show the dev how much of the GPU is currently being utilized. Essentially, I'm looking for similar functionality that GPU-Z has for Windows.
I'm sure this is possible since XCode does seem to have some GPU monitoring instruments, therefore it has to hook into an API of some sort. For Windows and Linux, I can just use NVAPI for the NVIDIA cards, and D3DKMT for Intel (also Windows). There's another library for AMD which has similar APIs but I haven't looked into it as of yet. I don't know what to do for Mac.
Any ideas? Thanks.
Shogun
EDIT: I found this link on stack overflow, but it only works for non-discreet GPUs it says: http://stackoverflow.com/questions/10110658/programmatically-get-gpu-percent-usage-in-os-x
I'm sure this is possible since XCode does seem to have some GPU monitoring instruments, therefore it has to hook into an API of some sort. For Windows and Linux, I can just use NVAPI for the NVIDIA cards, and D3DKMT for Intel (also Windows). There's another library for AMD which has similar APIs but I haven't looked into it as of yet. I don't know what to do for Mac.
Any ideas? Thanks.
Shogun
EDIT: I found this link on stack overflow, but it only works for non-discreet GPUs it says: http://stackoverflow.com/questions/10110658/programmatically-get-gpu-percent-usage-in-os-x
Last edited: