Difference of Exhibition

Started by velasquez, September 20, 2009, 07:36:24 AM

Previous topic - Next topic

velasquez

Imagine this with 1 or 2 GB of ram. 
With the construction in ODCL 4.1.2.2 there was not any delay.

owenwengerd

Quote from: velasquez on September 23, 2009, 09:29:30 AM
The speed of opening of the sample file in my system is very slow in AutoCAD 2006-2007-2009-2010. 

Can you be more precise than "very slow"?  10 seconds? 2 seconds?

velasquez

For not prolonging more the discussion is enough to look the first image of this post and to verify the difference. 
They are not all the users that can have equipments with 4 ram gb or more. 
OK if the new version cannot work as the previous.

owenwengerd

Your response sounds rude, like you can't be bothered to spend any more time on helping to get this problem resolved. I hope it's just my incorrect interpretation.

velasquez

Excuse me if my answer sounded rude. 
I tried to demonstrate of all the ways a problem that I found. 
I am willing to spend the time that goes I need to solve. 
But first it is necessary that the problem is recognized. 
I apologize again.

owenwengerd

No problem. I'm glad you are willing to help. As you say, first the problem must be identified. That is why I asked for a more precise description of what you mean by "very slow". Without that information, I can't be sure that you are seeing different results than me.

You mentioned that your client reports that the application is slow, but I already found that calls to SetVisible account for a lot of redrawing, and would slow it down. Are you sure that isn't the only problem?

velasquez

I stopped using SetVisible and dcl_PictureBox_Clear in runtime.   
I also tested below the code but nothing changed.
Code (autolisp) Select

(defun c:TestFlashing_A-TesteForm_OnInitialize (/)
   (foreach item '("PictureBox1" "PictureBox2"
    "PictureBox3" "PictureBox4"
    "PictureBox5" "PictureBox6"
    "PictureBox7" "PictureBox8"
    "PictureBox9" "PictureBox10"
    "PictureBox11" "PictureBox12"
   )
      (dcl_PictureBox_LoadPictureFile
"TestFlashing"
"A-TesteForm"
item
(strcat "D:\\DuctilCAD-2010\\Imagens\\" item ".jpg")
      ) ;_ fim de dcl_PictureBox_LoadPictureFile
    ) ;_ fim de foreach
)

The load of PictureBox can be seen per time.   
In all the tests you can see the load of each PictureBox. 
In OpenDCL 4.1.2.2 this difference could not be seen even with only 1gb of ram.
I make the tests in a computer with little RAM memory. 

owenwengerd

So, how slow is "very slow"? Is the problem with overall speed of displaying the form, or is it with the visual effect of being able to see the images painting in sequence? In other words, would it appear to be faster if no painting occurred until the very end of the process, then all images painted quickly after everything else has loaded? Once I know exactly what the problem is, I can look at what may have changed in the code, but at this point I still don't know exactly what the problem is.

velasquez

The speed is "very slow". 
The problem is not in the speed of exhibiting the form. 
It i with the visual effect of being able to see the images painting in sequence.
Yes, would it appear to be faster if no painting occurred until the very end of the process, then all images painted quickly after everything else has loaded.