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
| #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