i dont understand how every single one of my questions that started this discussion ended up ignored, together with almost everything else i said later on?
chunky,
Code: Select all
Abaraba: OK, one last attempt before I quit responding to this.
what does that mean? ..you dont really have to, and i wish there was much less talk about basic stuff that gets repeated over and over again even tho the very names of these variables are sufficient to explain what each of these 3 parameters for stepSimulation() mean
Code: Select all
int btSimpleDynamicsWorld::stepSimulation( btScalar timeStep,int maxSubSteps, btScalar fixedTimeStep)
lets hear whether it WORKS and point out which Bullet demo we should be looking at? ...also, you could choose to respond to other 99% of my questions that were not addressed in any way, even tho in most cases can be answered by simple yes/no or choose a) / b)
i did answer to your comment, let me quote myself:
"i have no idea about that function i just copy/pasted it as it was already used as example" - meaning i use proper timing or/AND BULLET DEMOS code - "i also used CcdPhysicsDemo as example.." - it was clear, that stepSimulation(dt, 0) works for me, that i CAN calculate and fix framerates on fast(er) computer - AND nothing would really properly work in millsec. ...and again i used BULLET DEMOS as example... so forget milliseconds already, ok?
Code: Select all
1) Have. You. Tried. Dividing. Your. First. Parameter. By. 1000.0f? If so, what results did you see?. It's a total of eight characters to add to your code and a recompile.
whats wrong, why are you talking like that?
milliseconds, eh ...yes, i have time in seconds - lets just talk about *CcdPhysicsDemo*, or any other Bullet demo to keep this simple, ok? so, in what Bullet demos is "Frame Rate Independence" implemented or, if not, choose one Bullet demo and show me?
i demonstrated how to achieve the effect by using stepSimulation(dt, 0), can you demonstrate the correct, supported way? .. note that i compared that with how stepSimulation(dt, 100) or similar DO NOT work, can you explain that?
Code: Select all
2) You need to show some actual code here. Spark, I, Erwin, all have working code that displays framerate-independance. That your code doesn't implies that your code is doing something different to mine. Therefore I need to see your code before I can help with more than wild guesses
are you kidding me??
there are 7 snippets of code i am trying to discuss here... lets just talk about *CcdPhysicsDemo*, or any other Bullet demo so everyone can follow, ok?
and if you missed them then, here are some code again:
//during idle mode, just run 1 simulation step maximum
int maxSimSubSteps = m_idle ? 1 : 1;
if (m_idle)
dt = 1.0/420.f;
int numSimSteps = 0;
numSimSteps = m_dynamicsWorld->stepSimulation(dt,maxSimSubSteps);
/----
change to this:
m_dynamicsWorld->stepSimulation(dt, 0);
show me how to achieve the same effect i get with stepSimulation(dt, 0), but your way?
(stepSimulation(dt, 1000) does not work... nothing even similar to former)
have.you.tried.overloading.your.scene.or.you.just.ignorant.as.you.have.500FPS.to.spare.on every.render-pass.so.in.effect.you're.blind.to.be.noticing.this.problem.in.a.first.place.. maybe?
more code,
that was invisible 1st time around
are you guys saying that all of these are frame rate independent ?
1.)
Code:
//*** fixing fps at 60, knowing we will always have time to spare
while( dTime < 1/60 )
getDeltaTime( dTime ) // dTime = time in seconds since last frame was rendered
stepSimulation(1/60, 1);
or even maybe
stepSimulation(dTime, 5); // note that dTime is not exactly 1/60
2.)
Code:
//*** fixing fps at 10, knowing we will always have time to spare
while( dTime < 1/10 )
getDeltaTime( dTime ) // dTime = time in seconds since last frame was rendered
stepSimulation(1/10, 10);
3.)
Code:
getDeltaTime( dTime ) // dTime = time in seconds since last frame was rendered
stepSimulation(dTime, 100);
yes/no?
cheers
p.s.
1.)
for all people that have no problem achieving "Frame Rate Independence", but still for some reason wanna go around changing everything - please open new thread to discuss API changes, please
2.)
for all people that want to discuss basics usage of stepSimulation and what each parameter means please just read documentation and then join in, please
3.)
please, try to address questions with answers not assumptions, if possible ..or at least try to 1st answer the questions that are most simple for you and skip the ones you have nothing new to say or know about.. thanks