OgreNewt's Basic Frame Listener

Zep

12-03-2010 19:32:32

Hi everyone.

I keep reading on the forum and even in the source code of OgreNewt that its basic frame listener is a very basic class created just for the demos that come with ogrenewt, and should not be used for "more complex application".
But what this "more complexe application" means ? I already coded a simple game with the basic frame listener (actually it was with the previous version of OgreNewt, with Newton 1.53) and it works fine.
My purpose is to make this game playable via a local network..so I wonder If I can keep the basicFrameListener class or if I must write my own frame listener. The problem is that I have no clue on how to write it.

May I have some opinions or advices please ?

kallaspriit

14-03-2010 21:27:27

Current version of the basic frame listener does not really do much at all, it just calls:
m_World->update (evt.timeSinceLastFrame);
..every time Ogre renders a frame. You could not use frame listeners at all and call the same method in your main loop :wink: