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 / Speed ​​up the processing

Author
Message
Max Maker
19
Years of Service
User Offline
Joined: 17th May 2007
Location: 4
Posted: 18th Dec 2011 00:35
Hello guys...

I wonder if i could speed up the processing when it loads media ,
such as in the demo 2 (demo02 - collision primitives)
when i press (B) button to load object box the application will freeze a little bit till the loading completes.


another example when i use csg commands with high-poly models like (perform csg difference)
All operations will stop like (camera control,animations) till the processing of difference finishes.

Is there anyway to make it all work but no freeze or just wait the processing of difference complete without freezing these things (camera control, or animation ...etc) ???

4444444444444444444444
Dar13
18
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 18th Dec 2011 00:44
No, because DBPro doesn't support multithreading(the splitting up of tasks among different processors/threads). The only way I can think of would be to get a quicker processor or graphics card.

MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 18th Dec 2011 02:55
Or look into using intervals...hint STYX
Synced and unsynced object loading
you could also try putting the CSG into an interval function...

Hope this helped
(funny I was reading into intervals just 12 hours ago lol)

TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 18th Dec 2011 03:19
Intervals? How? Can you post some code please

MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 18th Dec 2011 03:51 Edited at: 18th Dec 2011 04:05
Quote: "​​"

been seeing these a lot lately in variants... why does it happen? translators?

anyhoo... I try not to do anything bad y copying directly from other established sources... and also as you need to own STYX for it to work... I guess it should be OK to post the code from the STYX examples, but if this was wrong to do, can a mod lease remove it, hanks... I had already not copied code directly from the hands on dark basic books...

But yeah like I said you need to own the STYX plugin for this to work

Synced Object Loading - Intervals
[taken directly from the sample project folder might contain some of my modifications but relatively the same - think I just changed the number of loaded objects really]



UnSynced Object Loading - Intervals
same as said above might have small changes made by me so should still be working ... yet again you need the STYX Plugin for it to work...



Hope this helped and as I said can someone confirm that doing this is OK? really I have too high a guilty conscience that it bothers me even posting this right now...

EDIT

Corrected a misplaced ] might of confused some...

Login to post a reply

Server time is: 2026-07-09 21:19:22
Your offset time is: 2026-07-09 21:19:22