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 / darkclouds & dark physics

Author
Message
pavel_sv_1982
11
Years of Service
User Offline
Joined: 9th Apr 2013
Location: Russia
Posted: 3rd Jun 2014 10:53 Edited at: 14th Oct 2014 17:26
I decided to see what would happen in my FPS super toy with the outside world.

and found a small FPS and a small closed world ..

I am delicious two examples, and the result does not please me.

I will appreciate if you tell me what is the reason for this drop FPS.

i have 45 fps only

Attachments

Login to view attachments
Van B
Moderator
21
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 3rd Jun 2014 12:43 Edited at: 3rd Jun 2014 12:44
One thing that sticks out, in your main loop in the DarkClouds example, this:

dc make cubemap 128,2,3,4,5,6,7

I'm sure that'll be a slow command, not something you'd want to run every single frame. I'd limit that, or I'd just generate it on object creation. If you don't have the same issue when disabling that command, then that's your answer. Sorry I can't test it right now, at work - just had a look at the source code is all.

I am the one who knocks...
MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 3rd Jun 2014 14:21
Yup, Dark Clouds can eat your system out with that, Try using STYX or similar if available in Matrix1Utils to run DC on another thread, I have not done a proper test, but with a basic interval setup I gained 10~ FPS, I might try a proper Interval setup sometime soon when I get round to documenting DC...

pavel_sv_1982
11
Years of Service
User Offline
Joined: 9th Apr 2013
Location: Russia
Posted: 3rd Jun 2014 16:44
@Van B
Quote: "One thing that sticks out, in your main loop in the DarkClouds example, this:

dc make cubemap 128,2,3,4,5,6,7

I'm sure that'll be a slow command, not something you'd want to run every single frame. I'd limit that, or I'd just generate it on object creation. If you don't have the same issue when disabling that command, then that's your answer. Sorry I can't test it right now, at work - just had a look at the source code is all."


you're right

if you change the settings, the FPS rises considerably

pavel_sv_1982
11
Years of Service
User Offline
Joined: 9th Apr 2013
Location: Russia
Posted: 4th Jul 2014 15:10
...
I combined two examples of training.
Here's a video of what happened.
...
Ask permission to show this video.
if something goes wrong, let me know, I stand corrected.

...

Attachments

Login to view attachments
MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 4th Jul 2014 16:23
Wooah! that is updating too quickly... reduce your time stepping...

pavel_sv_1982
11
Years of Service
User Offline
Joined: 9th Apr 2013
Location: Russia
Posted: 28th Sep 2018 00:50 Edited at: 28th Sep 2018 16:01
example delete character controller



Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-04-19 13:35:30
Your offset time is: 2024-04-19 13:35:30