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.

Newcomers DBPro Corner / Major resource consumption?

Author
Message
roswell
21
Years of Service
User Offline
Joined: 17th Dec 2002
Location: United States
Posted: 27th Jun 2004 08:11 Edited at: 27th Jun 2004 08:22
I've been playing around with DarkBASIC for more than 3 years now, off-and-on (well, more OFF than on), but I'm determined to give it a fair go, now. However, I've run into something rather odd when coding a simple Nibbles clone. When I execute my code, I encounter a major system slowdown. It takes several seconds just for the window to completely appear. Ctrl-Alt-Del to bring up the task monitor takes FOREVER, and if you look at my specs, that's not easy to do. Can someone tell me if there's something glaringly obvious in the below code that may explain these symptoms? Keep in mind, I just threw this together in about 15 minutes. I'm just trying to get something to work.



/* You are not expected to understand this. */

Dual Athlon 2.0/1GB RAM/GeForce Ti4200-128/Win2000 Pro
Bean
20
Years of Service
User Offline
Joined: 23rd Mar 2004
Location: Flower Mound Texas
Posted: 27th Jun 2004 08:45
Add a SYNC command to your do-loop.
roswell
21
Years of Service
User Offline
Joined: 17th Dec 2002
Location: United States
Posted: 27th Jun 2004 08:46
Hee hee...um... yeah. I just caught that. Thanks for the response.

/* You are not expected to understand this. */

Dual Athlon 2.0/1GB RAM/GeForce Ti4200-128/Win2000 Pro
Kain
22
Years of Service
User Offline
Joined: 4th Sep 2002
Location: NJ, USA
Posted: 27th Jun 2004 08:54
When exactly is the slowdown occuring? Is it before dark basic completely load? EI: If you compile a program with nothing in it, do you still get the odd slowdown? DB takes a while to load normaly.

I don't see anything in the code itself that would cause a loading slowdown. DBC is quite slow at drawing 2d so that could cause some kind of problem. Pro is fast at it though.

The only other thing I can think of is that you aren't syncing at the end of your loop? I never worked much with 2d but I thought you needed to sync after using the draw commands?

Kain
22
Years of Service
User Offline
Joined: 4th Sep 2002
Location: NJ, USA
Posted: 27th Jun 2004 08:54
lol why did I just type all of that then?

roswell
21
Years of Service
User Offline
Joined: 17th Dec 2002
Location: United States
Posted: 27th Jun 2004 09:47
Sorry, Kain. Your effort is appreciated!

'Just one game,' they said, and started to play. That was yesterday.

Dual Athlon 2.0/1GB RAM/GeForce Ti4200-128/Win2000 Pro

Login to post a reply

Server time is: 2024-09-22 14:15:14
Your offset time is: 2024-09-22 14:15:14