I am using DarkBasic 1.12 Enhanced.
When I Execute my program from within the DarkBasic IDE or DarkEdit, I get about 50 fps. When I build a regular exe and run the exe, its about half the speed, and drags along at 20 fps.
This is really annoying, because during development everything seems to flow along just fine, and then when you make the exe it runs at a terrible speed and looks awful.
This has been logged many times before, e.g:
http://forum.thegamecreators.com/?m=forum_view&t=57855&b=10
http://forum.thegamecreators.com/?m=forum_view&t=56499&b=10
http://forum.thegamecreators.com/?m=forum_view&t=35423&b=10
http://forum.thegamecreators.com/?m=forum_view&t=34692&b=10
http://forum.thegamecreators.com/?m=forum_view&t=13048&b=10
It seems that this problem is especially apparent when using 2D graphics. For example, my game uses PASTE IMAGE only and nothing else.
The explanation seems to be this:
Van B wrote: "Compiled exes run slower because the interpreter manages the memory footprint better than the code inside the compiled exe. Remember DBC is interpreted so nothing is really compiled, just tokenised - but when coding, DBC is in a good state of readiness for running your program, but when running an exe it's not so well prepared and the exe has to battle for resources more.
"
'bibz1st' has suggested that downgrading to v1.08 will speed things up because the built exes have less modules, but evidently v1.08 is not very easy to get hold of.
So, can someone please advise me of my options:
Would upgrading to the latest version of DBC help at all? I understand that v1.13 is available. Does it suffer from the same problem? How do I get an upgrade?
If I spend the money to upgrade to DarkBasic Progressional will that help, or does it also suffer from the same problem?
Is there a way to launch DarkEdit or the DarkBasic environment from the command line, so that it opens my program and runs it? (Obviously not as good as a standalone exe, but at least I'd be able to have a desktop icon that ran the game reasonably well)
Any help would be greatly appreciated. I've spent a few days solid writing a game and all my time will have been wasted if I can't get the thing to run at a respectable speed.