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.

Dark GDK / dbPlayObject performance issue

Author
Message
Matty H
15
Years of Service
User Offline
Joined: 7th Oct 2008
Location: England
Posted: 6th Dec 2008 15:46
My frame rate is dropping alot, but only when my model is playing through an animation.
I use dbSetObjectFrame for when he is walking and that works fine.
When he is throwing I use dbPlayObject and it slows down terrible.
Im using the colonal.x model in the tutorials and he has alot more animation frames than I need and I think this could be the problem.

If I just use dbSetObjectFrame all the time will this help?
(I would just try it but it means changing alot of my program)


Is there an easy way to get rid of some animation frames from the model? and even if I do, will this help performance?
(I have no modeling software apart from 3D world creator).
Morcilla
21
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 10th Dec 2008 16:27
You can try CharacterFX for free:

http://www.insanesoftware.de/index.php?page=cfx/downloads.php

Also, there is a shader that uses the GPU for mesh animation, resulting in a performance increase:

Fastbone.fx shader in DBPro

Just convert the code from DBPro (almost straight), although this could change your code even more...
Matty H
15
Years of Service
User Offline
Joined: 7th Oct 2008
Location: England
Posted: 10th Dec 2008 23:00
Downloaded CharacterFX, thanx for the link,
looks perfect for me.
Good to know theres methods to increase performance, may try Fastbone.fx in future.

Love this forum, there's always someone willing to help.

Login to post a reply

Server time is: 2024-09-30 13:29:53
Your offset time is: 2024-09-30 13:29:53