Quick question

Everything about development and the OpenMW source code.
Post Reply
Draygera
Posts: 16
Joined: 21 Dec 2011, 18:15

Quick question

Post by Draygera » 28 Dec 2011, 00:13

How does openmw determine its frame rate?

jhooks1
Posts: 780
Joined: 06 Aug 2011, 21:34

Re: Quick question

Post by jhooks1 » 28 Dec 2011, 00:45

It is something built into ogre, every frame in frameRenderingQueued() gives a time since the last frame.

Draygera
Posts: 16
Joined: 21 Dec 2011, 18:15

Re: Quick question

Post by Draygera » 28 Dec 2011, 03:47

Thank you very kindly.

User avatar
Zini
Posts: 5537
Joined: 06 Aug 2011, 15:16

Re: Quick question

Post by Zini » 28 Dec 2011, 10:52

I assume this question is related to your task. You don't need to bother with it, since the frame duration is already passed into the SoundManager in the update function.

Draygera
Posts: 16
Joined: 21 Dec 2011, 18:15

Re: Quick question

Post by Draygera » 28 Dec 2011, 19:14

I noticed that if completely remove timer and all everything works perfectly fine. I'm guessing that C++ is a little different than Java in the sense of frame duration not having to be be defined in the file. Like I said, I'm still pretty new to C++. Thanks for the patience.

User avatar
Zini
Posts: 5537
Joined: 06 Aug 2011, 15:16

Re: Quick question

Post by Zini » 28 Dec 2011, 19:17

I'm guessing that C++ is a little different than Java in the sense of frame duration not having to be be defined in the file
No clue what you mean here. The frame duration is an ordinary function argument. From what little I remember about Java it is exactly the same.

Post Reply