Searched hist:"0 f2661cc0887839b11d447986125c99b2a8491f4" (Results 1 – 2 of 2) sorted by relevance
/haiku/src/apps/activitymonitor/ |
H A D | ActivityView.h | 0f2661cc0887839b11d447986125c99b2a8491f4 Fri Dec 24 09:42:04 UTC 2021 Adrien Destugues <pulkomandy@pulkomandy.tk> Partially revert "ActivityMonitor: remove double buffering and custom background drawing"
This partially reverts commit cc0226fad05a6796f50723554c10b1bbd02de7b1.
This commit caused high CPU usage in app_server. The double buffering in ActivityMonitor is not to avoid flickering, it allows to draw just a few pixels of the the curves at each update, and reuse most of the bitmap from the previous run.
Removing this means all the curves are fully redrawn at each update, resulting in higher CPU usage (one core at 30% on my machine with 5 different graphs).
Keep the part of the changes removing code for custom background drawing. B_TRANSPARENT_VIEW flag can be used instead.
Change-Id: Ie3438ca634c934f3e96ce5f7ad71ce7b3a435013 Reviewed-on: https://review.haiku-os.org/c/haiku/+/4833 Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org> Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
|
H A D | ActivityView.cpp | 0f2661cc0887839b11d447986125c99b2a8491f4 Fri Dec 24 09:42:04 UTC 2021 Adrien Destugues <pulkomandy@pulkomandy.tk> Partially revert "ActivityMonitor: remove double buffering and custom background drawing"
This partially reverts commit cc0226fad05a6796f50723554c10b1bbd02de7b1.
This commit caused high CPU usage in app_server. The double buffering in ActivityMonitor is not to avoid flickering, it allows to draw just a few pixels of the the curves at each update, and reuse most of the bitmap from the previous run.
Removing this means all the curves are fully redrawn at each update, resulting in higher CPU usage (one core at 30% on my machine with 5 different graphs).
Keep the part of the changes removing code for custom background drawing. B_TRANSPARENT_VIEW flag can be used instead.
Change-Id: Ie3438ca634c934f3e96ce5f7ad71ce7b3a435013 Reviewed-on: https://review.haiku-os.org/c/haiku/+/4833 Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org> Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
|