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 / Migrating issues.

Author
Message
ZomBfied
22
Years of Service
User Offline
Joined: 2nd Oct 2002
Location:
Posted: 20th Nov 2002 00:32
I ran Captain Zero in DB Pro today and asside from some understandible differences, it went uber slow! I can't figure out what's slowing it down from db1 to dbpro. What up with that? any ideas?
ZomBfied
22
Years of Service
User Offline
Joined: 2nd Oct 2002
Location:
Posted: 20th Nov 2002 18:42
Anybody?

ZomBfied
22
Years of Service
User Offline
Joined: 2nd Oct 2002
Location:
Posted: 20th Nov 2002 23:51
Hello?

Plus Now it crashes whenever I compile.

I get one of these:

DBPCOMPILER caused an invalid page fault in
module DBPCOMPILER.EXE at 0167:0041458e.
Registers:
EAX=00000000 CS=0167 EIP=0041458e EFLGS=00010246
EBX=00000000 SS=016f ESP=0069fa30 EBP=00000009
ECX=007c4800 DS=016f ESI=008509a0 FS=19b7
EDX=00851b10 ES=016f EDI=00000000 GS=0000
Bytes at CS:EIP:
8b 40 08 8d 3c bf d1 e7 3b c3 0f 86 89 00 00 00
Stack dump:
00850ff0 00850830 00850210 ffffff01 00850830 00850cc0 00000001 00851b10 00850370 008509a0 00850fc1 0069fa6c 00000001 00850980 00850980 00851840

Pheeel
22
Years of Service
User Offline
Joined: 2nd Oct 2002
Location: Cuba
Posted: 21st Nov 2002 10:23
There are lots of reasons why this could be slow. When I compiled my DB1 project to DBPro it ran slower. DBPro uses DX8 so you have to have a compatible Gfx card (in other words one that runs DX8 fast), if you don't then it'll definately run faster

The response I've always got is that DBPro isn't DBV1 and you shouldn't expect the code to run the same

If it makes you feel any better I'm rewriting mine at the moment (structures make life much easier!)
Ratty Rat
22
Years of Service
User Offline
Joined: 24th Sep 2002
Location:
Posted: 21st Nov 2002 14:31
When I have had crashes in DBPro its always been down to a specific command, sometimes when placed in a particular location (such as a function). I can only suggest 'REM'ing large sections of you code and seeing if you can pinpoint whats causing it (there was a note on a fix in release 3 for a bug where untyped arrays in functions causes a crash).

On the slowing down there are a few commands which are slower that DB (see http://www.darkbasicpro.com/apollo/view.php?t=1874&b=1)
I would recommend using the timer function to show you how long parts of your code are taking, then you should be able to narrow it down to a specific command and see if you can work around it.

Login to post a reply

Server time is: 2025-05-15 09:23:30
Your offset time is: 2025-05-15 09:23:30