Optimize cursor rendering

This commit is contained in:
Krzosa Karol
2024-07-26 09:57:15 +02:00
parent 672a0b3561
commit a74409c3ec
2 changed files with 38 additions and 56 deletions

View File

@@ -28,7 +28,7 @@ void _BeginProfileScope(const char *name, int len) {
get_time_in_micros() // timestamp in microseconds -- start of your timing block
);
}
#define BeginProfileScope(name) _BeginProfileScope(name, sizeof(name) - 1)
#define BeginProfileScope(name) _BeginProfileScope(#name, sizeof(#name) - 1)
void EndProfileScope() {
spall_buffer_end(&spall_ctx, &spall_buffer,