Add notes about GPU profiling on mobile.

This commit is contained in:
Bartosz Taudul 2017-11-27 18:17:51 +01:00
parent eeca0676df
commit 2f667e11ed

View File

@ -106,6 +106,8 @@ To mark a GPU zone use the `TracyGpuZone( name )` macro, where `name` is a strin
You also need to periodically collect the GPU events using the `TracyGpuCollect` macro. A good place to do it is after swap buffers function call.
GPU profiling is not supported on OSX, iOS (because Apple is unable to implement standards properly). Android devices do work, if GPU drivers are not broken. Disjoint events are not currently handled, so some readings may be a bit spotty.
## Good practices
- Remember to set thread names for proper identification of threads. You may use the functions exposed in the `tracy/common/TracySystem.hpp` header to do so. Note that the max thread name length in pthreads is limited to 15 characters. Proper thread naming support is available in MSVC only if you are using Windows SDK 10.0.15063 or newer.