Random Jerkyness/Skipping

Hey guys. I am having an issue where my movement seems to pause or skip at regular intervals. I can’t figure out what is causing this.



[java]

speed = accel*tpf;



if(name.equals(“Left”)){

owner.setPosition(owner.getPosition().add(new Vector3f(speed,0,0)));

}

if(name.equals(“Right”)){

owner.setPosition(owner.getPosition().add(new Vector3f(-speed,0,0)));

}

if(name.equals(“Up”)){

owner.setPosition(owner.getPosition().add(new Vector3f(0,0,speed)));

}

if(name.equals(“Down”)){

owner.setPosition(owner.getPosition().add(new Vector3f(0,0,-speed)));

}

[/java]



Here is my code that calculates movement speed. I also noticed that when I didn’t have a max FPS set, that the tpf was not really functioning correctly, and it was clearly slowing down at higher frame rates approaching 1000+.

High framerates can be a bit problematic … Floating point accuracy goes down a lot at that point.

@Momoko_Fan said:
High framerates can be a bit problematic .. Floating point accuracy goes down a lot at that point.


Yeah, though the problem described is exactly what stock beta will do without updates.

I have also noticed these skips when setting a max FPS it also happens when using Vsync in windowed mode. Never really investigated why… but I have my guess…



It works flawlessly with Vsync on in fullscreen mode anyways.

Have you updated to the latest stable?



The base beta release had some timer related issues that made tpf and FPS erratic.

pspeed: do the nightly builds include these updates? I’m using one from around 8-19-12.

@bgilb said:
pspeed: do the nightly builds include these updates? I'm using one from around 8-19-12.


Yeah.

Do you think it is another issue then?



When I get home though I will download the very latest one and try it.

What is speed? Check to see how stable tpf is. Maybe it’s something else causing the pauses.



How often do the pauses happen?

[java]

0.01626504

0.01626504

0.015852865

0.015852865

0.016059281

0.016059281

0.01590126

0.01590126

0.016019447

0.016019447

0.016029652

0.016029652

0.01612249

0.01612249

0.01603887

0.01603887

0.016074425

0.016074425

0.015838709

0.015838709

0.016037554

0.016037554

0.017171688

0.017171688

0.014888275

0.014888275

0.01624792

0.01624792

[/java]



Here are some of the TPF values printed. This is with frame rate locked at 60fps.



The pauses happen about every half second.



EDIT: Also I checked and I’m using the last nightly build which is 8-02-12.

Isn’t much wrong with those that I see. Looks like the problem is somewhere else.

I set the max fps to around 100 and it appears to have gone away… didn’t change anything else.