1 2 | #if COMPILER_MSVC || COMPILER_LLVM #define BEGIN_TIMED_BLOCK(ID) uint64 StartCycleCount##ID = __rdtsc(); |
This works on GCC because all non MSVC compilers default to COMPILER_LLVM.
This issue has been discussed on the forum a couple of times before but never made its way into the game. But I am hoping that somebody would ask Casey about this issue during the stream so we can have these nice debug counters on Linux too B) Please?
For reference:
https://forums.handmadehero.org/i...p/forum?view=topic&catid=4&id=615
https://forums.handmadehero.org/i...p/forum?view=topic&catid=4&id=563
https://forums.handmadehero.org/i...p/forum?view=topic&catid=4&id=539
/Kim