Day 168: Debug Cycle Counters & LLVM/GCC

Now that we are back using the debug cycle counters it would be really nice if they were enabled when compiling with LLVM or GCC. This is really easy as both compliers do support __rdtsc so the COMPILER_LLVM flag just needs to be added

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
Yeah I'd be happy to add that if somebody reminds me on the stream :)

- Casey
Any volunteers to remind Casey about this issue on the stream?

/Kim