From e90984f638ab938a326227ba606ddbaa4564fc70 Mon Sep 17 00:00:00 2001 From: omar Date: Thu, 20 Nov 2014 12:27:05 +0000 Subject: [PATCH] Update README.md about performance --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 6132062c..a3ac423a 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,7 @@ The Immediate Mode GUI paradigm may at first appear unusual to some users. This Frequently Asked Question ------------------------- + How do you use ImGui on a platform that may not have a mouse and keyboard? I recommend using [Synergy](http://synergy-project.org). With the uSynergy.c micro client running you can seamlessly use your PC input devices from a video game console or a tablet. ImGui was also designed to function with touch inputs if you increase the padding of widgets to compensate for the lack of precision of touch devices, but it is recommended you use a mouse to allow optimising for screen real-estate. @@ -51,6 +52,17 @@ I recommend using [Synergy](http://synergy-project.org). With the uSynergy.c mic Yes. I have written data browsers, debuggers, profilers and all sort of non-trivial tools with the library. There's no reason you cannot, and in my experience the simplicity of the API is very empowering. However note that ImGui is programmer centric and the immediate-mode GUI paradigm might requires a bit of adaptation before you can realize its full potential. +Is ImGui fast? + +Down the fundation of its visual design, ImGui is engineered to be fairly performant both in term of CPU and GPU usage. Running elaborate code and creating elaborate UI will of course have a cost but ImGui aims to minimize it. + +Mileage may vary but the following screenshot should give you an idea of the cost of running and rendering UI code (In the case of a trivial demo application like this one, your driver/os setup may be a bottleneck and cause higher variation or throttled framerate. Testing performance as part of a real application is recommended). + +![performance screenshot](/web/performance_01_close_up.png?raw=true) + +This is showing framerate on my 2011 iMac running Windows 7, OpenGL, AMD Radeon HD 6700M. ([click here for the full-size picture](/web/performance_01.png)). +In contrast, librairies featuring higher-quality rendering and layouting techniques may have a higher resources footprint. + Can you reskin the look of ImGui? Yes, you can alter the look of the interface to some degree: changing colors, sizes and padding, font. However, as ImGui is designed and optimised to create debug tools, the amount of skinning you can apply is limited. There is only so much you can stray away from the default look and feel of the interface. The example below uses modified settings to create a more compact UI with different colors: