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 / very bad fps in my projects

Author
Message
pavel_sv_1982
13
Years of Service
User Offline
Joined: 9th Apr 2013
Location: Russia
Posted: 24th Aug 2013 00:01
i make map from boxes 64x64



fps down from 500 to 100
Brendy boy
20
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 24th Aug 2013 00:45
that's a lot of boxes->4096. Dbpro is very bad at handling lots of objects, no matter how simple they are

Libervurto
20
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 24th Aug 2013 11:57
Are you trying to make a voxel map? Using individual cubes is very slow because you have so many polygons. You are going to need to construct the 3D grid yourself to get anything usable. Here is how you would go about finding the co-ordinates at each vertex of your map grid:




Formerly OBese87.
Chris Tate
DBPro Master
17
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 24th Aug 2013 12:50
Quote: "fps down from 500 to 100 "


That is 10 milliseconds (100 fps) instead of 2 milliseconds per loop (500 fps).

It whether that is considered a bad thing depends on how much more detail is required to create the creation.

It is always a time saver on your part to elaborate on the big picture; it would be better if we knew why these boxes need to exist and what they need to do. Any answers can be made in consideration of the big picture.

Mage
Valued Member
19
Years of Service
User Offline
Joined: 3rd Feb 2007
Location:
Posted: 24th Aug 2013 18:03
Quote: "it would be better if we knew why these boxes need to exist and what they need to do. Any answers can be made in consideration of the big picture."

That's my line.

Chris Tate
DBPro Master
17
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 24th Aug 2013 18:23
lol

Login to post a reply

Server time is: 2026-07-07 05:39:40
Your offset time is: 2026-07-07 05:39:40