Sign in to follow this  
pokky

simulation and time step in OpenGL

Recommended Posts

Hi, I hope I'm in the right section of the forum.
I have a question about the simulation in OpenGL.
I created a game where there are simultaneously the render system and physics engine.

Until now, I put everything into the opengl display callback:
first, updating the entire system relatively to the collisions and physics and
after I do the rendering.
Under Linux the system works without any visible problems (even if there are special cases)
unfortunately in windows I have strange behavior.
I can't find the solution.
So, I no have experience related to these types of behaviors
and I have not made any kind of synchronization in OGL in the past.
but I have no idea if the problem is due to this.
So I ask here, if somebody give me some suggestions.

I have done all without worrying about how to create the simulation step,
I've simply put a loop (for update collision and physics) into the dysplay callback of opengl, and after recall with the glutmainloop().
Is this wrong? Can it cause problems that I found especially under windows?
Have I create a synchronization mechanism?

please, any help is very appreciated!
sorry if my English is bad

thanks

Share this post


Link to post
Share on other sites
I see that my suspicions are correct:

http://www.allegro.cc/forums/thread/603101

It is the same problem and it is explained much better (my english sucks)

I hope this can help me and others

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this