Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / DBPCompiler performace ( CPU usage )

Author
Message
Chris Tate
DBPro Master
17
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 1st Feb 2012 14:11
Has anyone experienced a major system slowdown whilst compiling in DBPRO.

Over the past 3 years it has been able to compile whilst allowing me to perform general tasks such as reading a webpage. But now it takes about 10 seconds for each mouse click and key stroke to register. This is a fresh system setup, and most programs run without such symptoms.

I have to set its priority to Below Normal to allow myself to do anything. The CPU usage remains at 95-99% and there is not much difference in compile time when done. I just need to do stuff while compiling 16k lines; but the process of clicking the set cpu priorty button alone takes 1 minute.

To be honest, this is not always a problem; sometimes it is not bad, sometimes I can even render a scene in a 3D editor. But at other times it is terrible.

I usually have the following programs open: FireFox, Indigo, WinAmp, MS Outlook.

PC: Athlon 64 3200. 2GB Ram. Windows XP Pro. DBPRO 7.7.

BatVink
Moderator
23
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 1st Feb 2012 14:48
Do you have an indexing service or over-zealous antivirus system grabbing the files as they are generated? I've never had a problem with the compiler itself.

Chris Tate
DBPro Master
17
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 1st Feb 2012 14:57
Could be the antivirus; it was just updated recently. I will looking into that, thanks.

Chris Tate
DBPro Master
17
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 1st Feb 2012 15:13 Edited at: 1st Feb 2012 15:15
Dead right BatVink

The AVG antivirus update added some new level of intensity for checking up on EXE activity. It set its intensity to maximum and stated that it is for when I am not doing any work.

Kevin Picone
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Australia
Posted: 1st Feb 2012 15:36
Quote: "The CPU usage remains at 95-99% and there is not much difference in compile time when done. I just need to do stuff while compiling 16k lines; but the process of clicking the set cpu priorty button alone takes 1 minute.
"


ouch, while academic now, how long does it take to build 16K lines on your system ?

Chris Tate
DBPro Master
17
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 1st Feb 2012 15:44
5 minutes (It's an old PC)

It is culmulative so the more lines, the more function checks & processing of constants.

I'm not bothered by the compile time because I have things to do whilst it compiles anyway. I also use scripting and intiation files to prevent having to compile every change I make.

Kevin Picone
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Australia
Posted: 1st Feb 2012 15:51
Quote: " It is culmulative so the more lines, the more function checks & processing of constants."


It is, but (16000/300) equates to 53.3 lines per second. Somebody really should be looking into that.

Chris Tate
DBPro Master
17
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 1st Feb 2012 17:09
It stalls at certain points, some other program may be lagging the system. It takes 20-30 seconds alone to actually start parsing after clicking the compile button. It then stalls for about 20-30 seconds when linking the final lines.

MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 1st Feb 2012 17:29
Chris Tate... I believe XPPro with SP3 had DEP included... have you looked into this?

[Just checked my Virtual XP on Win7x64 and it does feature DEP... if you need help with it just ask I have a detailed tutorial ]

GIDustin
18
Years of Service
User Offline
Joined: 30th May 2008
Location:
Posted: 2nd Feb 2012 01:06
My compiles run extremely high on CPU as well. I figured I just had to live with it. What info do you have on this DEP?
Chris Tate
DBPro Master
17
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 2nd Feb 2012 01:45
I briefly looked at DEP and will investigate further later in the week.

For clarification, the settings alteration in AVG did not help.

For some reason when I made the change, the performance returned to normal. Now with the change intact, the performance is bad.

After 11 hours I have just done a reboot; and the lag has come back. The AVG settings are set to medium. The lag originally occured when I rebooted earlier to update AVG.

I notice that the Indigo IDE is not very responsive at the moment.

Something is going on when Windows starts up. No viruses found, no threats or anything obvious. All the processes running are what should be running (I do not install much). Plenty of disk space; TGC products have their own hard drive partitioned on an alternative hard drive.. Not sure what's up. Judging by Indigos lag, it is not the DBPRO Compiler itself; (why would Indigo lag when the compiler is not running).

Could be DEP; the only program rivalling Indigo & DBPRO compiler is the System Idle Process.

nruser
18
Years of Service
User Offline
Joined: 22nd Dec 2007
Location: Serbia
Posted: 2nd Feb 2012 02:13
my project currently has over 10.000 lines of code in total and it takes around 15 minutes, to compile on single core cpu with 1.25 ghz, it might have something to do with plugins or something else in dbp, my other projects doesn't take more then 5 seconds to compile
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 2nd Feb 2012 08:08 Edited at: 2nd Feb 2012 12:46
Ok here it comes...

Forum version... http://forum.thegamecreators.com/?m=forum_view&t=159609&b=2&msg=2159408#m2159408

which links directly to the post and...

My blog version... http://www.akaneaya.co.uk:/vvdevblog/?page_id=648

which is still open to debate

Also a side note its focussed on Vista/7 so just look at the DEP settings if your on XP and maybe also have a look at the exceptions on your antivirus... maybe just read the whole thing...

BTW the latest U77 uses Synergy which isnt exactly perfect but compiles pretty well...

EDIT

Directly corrected...

I think from now on I will just link to the one on my blog as its still open to debate hpwever I still have a link on the right which is always visible across my blog so I hope nobody sees it as spam... its just hard work linking to both specially when I have time limits...

Chris Tate
DBPro Master
17
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 2nd Feb 2012 12:21
Thanks MrValentine, I will keep you posted.

MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 2nd Feb 2012 12:47
Edited previous post and thank you Chris Tate looking forward to your feedback

Login to post a reply

Server time is: 2026-07-11 02:55:38
Your offset time is: 2026-07-11 02:55:38