.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

100% on CPU usage

1 REPLY 1
Reply
Message 1 of 2
Anonymous
260 Views, 1 Reply

100% on CPU usage

Hi

I have made a program that get a 3D section of solids and 3dface. The user
can select a polyline, arc, spline..

If the user select a polyline with many vertexes and also select many
solids/3dface, this can take some time.

I notise that after my program has loop through the objects maybe
30000-40000 times, I must wait 15-20 seconds

unitil the use of CPU is drop down to under 10%. If I do some Autocad
commands before that, I sometimes get FATAL ERROR

Is it something wrong in my code or is it possible to find out when the cpu
usage is low and then my program can wait..?

Thanks
Rune
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: Anonymous

Hi Rune,

Without your code, who could even guess?

But as a starter look for loops and think though the logic associated
with the loop and exiting from it.

Regards,


Laurie Comerford



Rune Aarnes wrote:
> Hi
>
> I have made a program that get a 3D section of solids and 3dface. The user
> can select a polyline, arc, spline..
>
> If the user select a polyline with many vertexes and also select many
> solids/3dface, this can take some time.
>
> I notise that after my program has loop through the objects maybe
> 30000-40000 times, I must wait 15-20 seconds
>
> unitil the use of CPU is drop down to under 10%. If I do some Autocad
> commands before that, I sometimes get FATAL ERROR
>
> Is it something wrong in my code or is it possible to find out when the cpu
> usage is low and then my program can wait..?
>
> Thanks
> Rune
>

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost