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 Discussion / resources

Author
Message
ducati916
21
Years of Service
User Offline
Joined: 23rd Jun 2003
Location:
Posted: 14th Sep 2003 15:31
ok this is for a chat i'm making and i dont want it eating the comps resources when its running.

right now when i run my program it uses 8mb ram and 100% cpu usage the ram part is ok but how would i lower the cpu usage?.

i come bumped into the same problem in blitz basic and it was easy fixed with a delay(1) in the main loop that took the 100% to 0% and it was still running great
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 14th Sep 2003 17:01
More memory would help to start with. Next, try and get your program to sleep until something happens, which may help.


Avatar & Logo by Indi. Come to the UK DBPro Convention in Chichester
Pricey
22
Years of Service
User Offline
Joined: 22nd Feb 2003
Location:
Posted: 18th Sep 2003 21:42
but what if something is always happening

eg. AI

My programs don't crash... your computer does

http://johnsgamesuk.topcities.com
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 26th Sep 2003 08:01
delete or hide unnecesary objects, images etc... they slow down DB ALOT! also try to drop your sync rate to about 20 if it still looks good... you could try reducing the amount of commands used, that is, use arrays and functions for repeated tasks, just generally try to keep the amount of information that is used to a minimum... and it helps to make use of external files, like reading text files for matrix data etc, less loading is needed for the main program that way...

hope i helped

If Quizz's Are Quizzical, Then What Are Test's?

Login to post a reply

Server time is: 2025-05-20 17:46:44
Your offset time is: 2025-05-20 17:46:44