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.

Program Announcements / Updated: DiagnosticTools for DBpro

Author
Message
Bulleyes
22
Years of Service
User Offline
Joined: 3rd Nov 2002
Location: Cyberjaya, Malaysia
Posted: 2nd Nov 2004 17:43
Half a year ago, I released a set of commands that help DBpro programmers to debug their code. It is basically a set of functions that allow you to output diagnostic/debugging text in different ways, e.g. console window, log file, or message box, which might be easier and better than using DBpro's PRINT or TEXT command.

Lately, I had updated this tools and added a few commands for code profiling. These can be done easily by placing 'begin' and 'end' command around the code where you need to profile, and then you can get its latest running time, as well as its average, worst, and best running time.

Feel free to download and give me some feedback!

http://www.badnose.com/dbpro/DiagnosticTools.zip

Thomas Cheah (Technical Director)
Bad Nose Entertainment - Where games are forged from the flames of talent and passion.
http://www.badnose.com/
The Big Babou
21
Years of Service
User Offline
Joined: 10th Feb 2003
Location: Cyberspace
Posted: 3rd Nov 2004 09:06
really cool. I'm using your diagnostic tools some time now. I'll update them tomorrow.

... they call it a royale with cheese ...
Bulleyes
22
Years of Service
User Offline
Joined: 3rd Nov 2002
Location: Cyberjaya, Malaysia
Posted: 3rd Nov 2004 12:31
Ok. Thanks! Tell me what do you think about it.

Thomas Cheah (Technical Director)
Bad Nose Entertainment - Where games are forged from the flames of talent and passion.
http://www.badnose.com/
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 3rd Nov 2004 19:56
I'll be checking them out soon. You never can have enough tools in your debugging belt

BatVink
http://biglaugh.co.uk/catalog AMD 3000+ Barton, 512Mb Ram, 120 Gig Drive space, GeForce 5200 FX 128 Mb, Asus A7N8X Mobo.
Terms & Conditions apply
The Big Babou
21
Years of Service
User Offline
Joined: 10th Feb 2003
Location: Cyberspace
Posted: 12th Nov 2004 23:40 Edited at: 12th Nov 2004 23:40
Sorry bulleyes, i had no time the last days, but it's friday and I played with the profiling commands. I must say it's very interesting seeing how much time which part of my code needs. As the first release was simple and yet very helpful, you added some more simple but even more helpful commands. Keeping your code clean of debugging code is very easy with it.

Screenshot (the example included with the tools, only edited a litte bit):



Usually I drag the Diagnostic Console to my second monitor, so my game runs in fullscreen on my first monitor and i can read the console on my second one.

One very small request though, everytime the console has the focus, DBPro doesn't react on input (as the DBPro window lost the focus). Would it be possible, that the focus jumps right back to the DBPro window, after i dragged the console around?

Thanks Bulleyes for such a handy tool.

... they call it a royale with cheese ...
Bulleyes
22
Years of Service
User Offline
Joined: 3rd Nov 2002
Location: Cyberjaya, Malaysia
Posted: 7th Dec 2004 21:21
Thanks, I hoped that you find the tool really useful. Yeah, I guess I could make your suggestion into my next update. Cheers!

Thomas Cheah (Technical Director)
Bad Nose Entertainment - Where games are forged from the flames of talent and passion.
http://www.badnose.com/
Ilya
21
Years of Service
User Offline
Joined: 10th Aug 2003
Location:
Posted: 8th Dec 2004 08:07 Edited at: 8th Dec 2004 08:24
Offtopic: How do you get another monitor on your PC?

And the console only works with sync.

Quote: "I've seen the word programming and I'm not sure what it means. Anybody please explain?"


Quote: "We shouldn't sacrifice the truth to preserve "balance"."
The Big Babou
21
Years of Service
User Offline
Joined: 10th Feb 2003
Location: Cyberspace
Posted: 8th Dec 2004 11:36
My graphics card has the normal analog and a second (DVI) output, so I can attach two monitors to it.

What do you mean by

Quote: "And the console only works with sync."


?

... they call it a royale with cheese ...
Ilya
21
Years of Service
User Offline
Joined: 10th Aug 2003
Location:
Posted: 9th Dec 2004 07:32
Sync syncs the console.
If you don't use sync with sync on, the console turns white.

Quote: "I've seen the word programming and I'm not sure what it means. Anybody please explain?"


Quote: "We shouldn't sacrifice the truth to preserve "balance"."
The Big Babou
21
Years of Service
User Offline
Joined: 10th Feb 2003
Location: Cyberspace
Posted: 9th Dec 2004 10:33


works fine here, no white console

... they call it a royale with cheese ...
Ilya
21
Years of Service
User Offline
Joined: 10th Aug 2003
Location:
Posted: 9th Dec 2004 11:11
Add "sync on" to the top. This increases speed for 2D operations.

Quote: "I've seen the word programming and I'm not sure what it means. Anybody please explain?"


Quote: "We shouldn't sacrifice the truth to preserve "balance"."
The Big Babou
21
Years of Service
User Offline
Joined: 10th Feb 2003
Location: Cyberspace
Posted: 9th Dec 2004 20:45


also works fine, still no white console

... they call it a royale with cheese ...
Ilya
21
Years of Service
User Offline
Joined: 10th Aug 2003
Location:
Posted: 10th Dec 2004 06:14 Edited at: 10th Dec 2004 06:14
Yes, but without the sync. It slows 2D down too much(when you render an image).

Quote: "I've seen the word programming and I'm not sure what it means. Anybody please explain?"


Quote: "We shouldn't sacrifice the truth to preserve "balance"."
The Big Babou
21
Years of Service
User Offline
Joined: 10th Feb 2003
Location: Cyberspace
Posted: 10th Dec 2004 12:28
What's the point of using sync on without sync? I thought by using sync on, you have to use sync to render the screen.

... they call it a royale with cheese ...
Ilya
21
Years of Service
User Offline
Joined: 10th Aug 2003
Location:
Posted: 11th Dec 2004 06:25
Yeah. Rendering lags long processes(for-loop inside for-loop) down.

Quote: "I've seen the word programming and I'm not sure what it means. Anybody please explain?"


Quote: "We shouldn't sacrifice the truth to preserve "balance"."

Login to post a reply

Server time is: 2024-11-22 08:33:16
Your offset time is: 2024-11-22 08:33:16