High CPU Utilization with Xtreme Suite |
Post Reply |
Author | |
Boyd
Senior Member Joined: 08 December 2003 Location: United States Status: Offline Points: 285 |
Post Options
Thanks(0)
Posted: 04 March 2004 at 1:05pm |
While developing one of my applications using the ActiveX Xtreme Suite, I noticed that CPU utilization was abnormally high. I initially attributed this to the type of processing I was doing in the CommandBars 'Update' event to ensure my toolbars were properly enabled/disabled. Since this event was constantly firing when a toolbar was visible, I assumed I needed to minimize the amount of processing performed in this routine. After spending tens of hours trying to minimize and tweak my code to decrease CPU utilization, I ran out of ideas and never got the CPU at an acceptable level. I since started working on another application that did not involve a lot of processing in the 'Update' event. I was suprised to later find out that the application still had high CPU utilization. I finally decided to build a test applicaiton that was similar in design to my other applications except that it did very little (if any) processing. All it does is load and display forms. There is no updating of any CommandBarControls. The application is a typical MDI application. The MDI Form has a CommandBars control that supplies the main menu (no toolbars). Each child window contains two docked panes (one with a PropertyGrid and the other with a TextBox). In one version of the application, the two docked panes also contain a CommandBars object (although nothing is loaded or displayed for those controls). Now I have two similar applications:
I then performed some basic tests on two machines. On each machine, I invidivually loaded each of the two applications. I would then open new child windows and watch the percentage of CPU utilization in the Task Manager as I added new windows. I would also check the impact that DocumentTabs had on CPU utilization. Since ResourceTest2.exe did not have CommandBars on each child form, I expected it to consume less of the CPU. The results are below: Pentium 4 1.7GHz 256MB RAM WinNT 4.0 Pentium II 400MHz 256MB RAM Win2000 These results show a lot of CPU utilization considering the application itself is doing nothing. I've attached the project source code and exectable files for the two test applications. You'll need CommandBars, DockingPane, and PropertyGrid registered on the machine to run the examples. Dont' get me wrong. I absolutely love these controls!! They provide a very professional look-and-feel to the application. My concern is that my clients will not want to use my application if it is constantly consuming a minimum of 10% of the CPU. Has anyone else seen this problem? Is there something I'm doing wrong in my implementation of the controls? Codejock, can anything be done to reduce CPU utilization? Sample Projects Attached: DZ1_ResourceTest.zip |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Thans for detailed description of problem. You and SuperMario make good work in our forum. We made some changes and if you wish I can send you beta to test. SuperMario, if you want to test beta I will send to you too. |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Boyd
Senior Member Joined: 08 December 2003 Location: United States Status: Offline Points: 285 |
Post Options
Thanks(0)
|
Hi Oleg, I would be happy to take a look at the beta. Please send me a private message or e-mail with a link to the files. Would this be a beta of 8.62 or a recompile of 8.61 with performance tweaks? I'm sure you're trying to wrap up the 8.62 release, so I'll try to provide feedback as quickly as possible. QA Testing is my official career (software development is a side job), so I'm glad my participation in the forums has helped. |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |