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 / dbLoopObject and dbPlayObject slow game down

Author
Message
coolness
13
Years of Service
User Offline
Joined: 28th Jan 2011
Location:
Posted: 29th Jan 2011 18:28
Hello, each time I play or loop a Model's animation the CPU goes from 40 to 65 and sometimes 99. It also slows the game down in my friend's computer. I am calling the loop function once, and it is NOT inside a while or for loop. I am beginning to think that it is actually the model, but why would it be the model? Are there any other reasons why it a model animation would slow down the game?

TheeLord
16
Years of Service
User Offline
Joined: 23rd Jan 2008
Location: Chicago
Posted: 30th Jan 2011 03:28
Unless you have a VERY complex model, I dont see why animation would be slowing it down at all.. How many computers have you tested this on?
coolness
13
Years of Service
User Offline
Joined: 28th Jan 2011
Location:
Posted: 2nd Feb 2011 06:53
Hello there, thanks for responding. My apologies for not responding sooner (I thought i would get an e-mail every time some one replied to my post). I have tested it on two computers. The model's complexity is not an issue, or so I would thing, for I reduced the number of polygons greatly to test if that was just the case, and the functions still gave me trouble. At one time I thought it would be the number of frames, but it was not that either. Maybe its the settings with which I export the model? if so, what are the best setting to export the model using panda?
Matty H
16
Years of Service
User Offline
Joined: 7th Oct 2008
Location: England
Posted: 2nd Feb 2011 14:05
Play object problem

Thats a link to a post I made as I noticed this issue too, try using dbSetObjectFrame() and see if it helps.

coolness
13
Years of Service
User Offline
Joined: 28th Jan 2011
Location:
Posted: 3rd Feb 2011 03:55
Hey matty, thanks for the link. I think I may have found the reason why it was slow and gave my CPU problems. I think my model is using too many dummies. I deleted a bunch of them and performance got better. Even so, I will give a shot using your suggestion for the sake of better performance. Thanks!
Red Eye
16
Years of Service
User Offline
Joined: 15th Oct 2008
Location:
Posted: 3rd Feb 2011 07:57
Well I ussally make my own commands, here is a part of my animation system.



...If you need any eloboration? Please say.

Login to post a reply

Server time is: 2024-11-19 14:43:43
Your offset time is: 2024-11-19 14:43:43