diff --git a/Developer-Tips.md b/Developer-Tips.md index 062888f..802d87d 100644 --- a/Developer-Tips.md +++ b/Developer-Tips.md @@ -1,5 +1,11 @@ If you are working on Dear ImGui codebase: +### Metrics +The Metrics window exposes lots of information about the library state. + +### Visual debugging +You can use drawlist primitives on the foreground drawlist, e.g. `GetForegroundDrawList()->AddRectFilled(...)` to bypass clipping of the current window's drawlist. + ### Logging You can use the `IMGUI_DEBUG_LOG` macro (declared in `imgui_internal.h`) to easily print text to the console while including the current frame counter, which is very often useful in log.