Quote: "Wait 1000 wait's for 1 second, it does nothing to the processor usage.
Try this code with task manager showing the processes, then press S and watch the usage drop to nothing."
The code you provided will force the wait to be divided by 4.
e.g. Wait 250
Notice these results though.
Click on the DBP Window while having the Task Manager on-screen.
The results I get are:
Wait 250 : Out-of-Focus [25%] Minimised [100%] In-Focus [22%]
KernelWait : Out-of-Focus [35%] Mnimised [7%] In-Focus [35%]
In any case, what I can't seem to figure out is this 'claim' that it makes it quicker and more responsive. I have
NO issues on here switching between DB/P, Maya, Photoshop and Media Player; it does it all instantly.
I know that it's hardly my 'super powerful' system either because this thing is only a poxy AMD 2600+ 512MB PC2700 ATA/100 System.
Even running Debug DirectX, and is slower cause the HDD isn't quite quick enough (atleast the C: Drive isn't) .. only 50MB/s rather than the 80MB/s it should be getting. Makes a world of difference speed wise trust me.
So either your running much, much older hardware or you have some issues that are affecting your system. I'd also say, just because you know DarkBASIC Professional doesn't mean it's the best environment for creating your Applications. Making very basic Editor Systems for your games, fine; but as far as anything serious goes you really should learn C# or such. Visual Basic isn't a million miles away from DBP in terms of syntax or useage code-wise.
You use the best tool for the job, not the only tool you know how to use for every-job. You wouldn't use a screwdrive to makes holes would you?