Very high CPU and power usage

General discussion on mikroC PRO for PIC32.
Post Reply
Author
Message
ISL_Dave
Posts: 695
Joined: 29 Jul 2009 09:48
Location: Sheffield

Very high CPU and power usage

#1 Post by ISL_Dave » 12 Jun 2019 16:08

I wonder if it is normal for MikroC for PIC32 to use so much resources when it is idle?

I have created a new project and have spent days trying to figure out how to get a splash screen displayed on the TFT with no success.

I then resorted to looking on the web for anything that gives me a clue as to how to get started with the Visual TFT that I have bought and found the computer is running really slow again.

I have just noticed the compiler is taking a stupid amount of resources and my computer runs much better when it is not loaded.
Attachments
resource.jpg
resource.jpg (27.36 KiB) Viewed 1849 times

brandonb
Posts: 105
Joined: 24 Jan 2013 03:24

Re: Very high CPU and power usage

#2 Post by brandonb » 13 Jun 2019 03:09

I wonder if it is normal for MikroC for PIC32 to use so much resources when it is idle?
curious what processor? i haven't seen this with mikroc by its self but i don't use the tft software since i use 4d displays.

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Very high CPU and power usage

#3 Post by filip » 13 Jun 2019 14:05

Hi,

Which PC configuration do you have ?
Do other mikroE compilers use the same amount of resources like mikroC PRO for PIC32 ?

Regards,
Filip.

hexreader
Posts: 1786
Joined: 27 Jun 2010 12:07
Location: England

Re: Very high CPU and power usage

#4 Post by hexreader » 13 Jun 2019 14:32

Those figures are for the pro compiler. The compiler reports to task manager without the "pro" text.

Here are the figures that I obtained:

Windows 10 pro 64 bit
i7-6700 quad core 3.4GHz
16GB memory, SSD drive

All software is latest versions with dongle licence

mikroC pro: 0 to 1.2% cpu, 301.7MB memory
mikroC pro dsPIC: 0 to 0.2% cpu, 336.3MB
mikroC pro PIC32: 10 to 14% cpu, 107.0MB memory
mikroC pro ARM: 0% steady, 633.6MB

PIC32 IDE does seem to be keeping the CPU very busy for no obvious reason

Not causing me any issues, as I have a fast computer, but it does seem odd.
Start every day with a smile...... (get it over with) :)

hexreader
Posts: 1786
Joined: 27 Jun 2010 12:07
Location: England

Re: Very high CPU and power usage

#5 Post by hexreader » 13 Jun 2019 14:38

CPU use goes down to zero if I close the very simple VTFT project I have by default.

Seems to be the VTFT operation that hogs a lot of CPU time.
Start every day with a smile...... (get it over with) :)

ISL_Dave
Posts: 695
Joined: 29 Jul 2009 09:48
Location: Sheffield

Re: Very high CPU and power usage

#6 Post by ISL_Dave » 14 Jun 2019 09:44

Thanks guys for the replies.

Filip, I am not sure about MikroC Pro for PIC as I have uninstalled it as it was unusable and would no longer compile projects properly that it previously compiled.

My hardware is an elderly intel i5-5200U Thinkpad Laptop with 8Gb RAM which is earmarked for replacement before next year as it has quite a relatively low benchmark score.

I normally have my PCB CAD software open at the same time but my PC blue screened yesterday for the first time since I replaced the hybrid HDD with a full SSD last year and seemed to struggle beforehand so I have not opened my CAD today but still notice it more sluggish than normal and MikroC for PIC32 still takes >30% CPU constantly.

It does seem that the PIC32 compiler is a very hungry beast.
I closed my very simple test TFT project and the resources dropped down to <5% but simply moving the cursor over recent projects on the start page made the resources jump to >20% as I moved the mouse over the different projects.
As soon as I selected my very simple TFT project, it jumped to being permanently >30% (memory usage was only a small 140Mb or so and eventually dropped to just over 40Mb after a bit) even with the focus moved to my web browser.

Now a little worried that I may have to bring the plans to replace my replacement laptop forward.

VCC
Posts: 463
Joined: 08 Jun 2009 18:31
Location: Romania

Re: Very high CPU and power usage

#7 Post by VCC » 26 Jun 2019 19:12

Hi,
this is not new: viewtopic.php?f=106&t=71151 :|

Post Reply

Return to “mikroC PRO for PIC32 General”