c++ - Does the number of active visible HWNDs in Windows 7 (or up) affect performance notably? -


the question vague admittedly i'm trying avoid going down design rabbit hole. i'd heard anecdotally creating hundreds of buttons , other controls in application less performant writing own windowless controls , handling mouse click/move/tracking/capture logic self.

i'll preference use hwnd based controls because don't have reinvent wheel not if application become unusable.

based on experience hwnd-heavy application don't think encounter significant general performance problems.

you will, however, need make sure you're not exceeding per-process , per-session handle limits (which default 10,000 process , 32,768 session) if going crazy creating o/s windows.

at point, unable create new handles (and therefore unable create new window objects), application start acting in bizarre ways, , it's downhill there.

you can run low on desktop heap when create tons of o/s handles, , can cause other instability issues. these reasons it's best design in such way stay under limits conceivable use case.


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -