Page 1 of 1

Jerky [camera] movement

PostPosted: 30 Mar 2014, 04:52
by Suitecake
Hi all. I just pulled the branch fresh this afternoon, and noticed that the movement seems rather jerky. It's offputting. Has anyone else observed this, or is this just me? Is there a way to show FPS?

I'm running a pretty fresh/clean Linux Mint 16, 64-bit.

Re: Jerky [camera] movement

PostPosted: 30 Mar 2014, 15:42
by Bertram
Hi SuiteCake,

Could you elaborate a bit about this?
Btw, on low fps, especially when not playing on full screen, the lack of vsync support can make the map background a bit shaky.
Is that the problem you're having?

To show FPS, you'll have to enable debug feature support when compiling and push Ctrl+r.

Regards,

Re: Jerky [camera] movement

PostPosted: 30 Mar 2014, 16:23
by Suitecake
Shaky map background sounds like what I'm seeing.

I'm getting a pretty consistent 41 FPS outdoors (windowed, 800 x 600). That would explain it.

Thanks,

Re: Jerky [camera] movement

PostPosted: 01 Apr 2014, 09:39
by Bertram
Hi again,

Btw, on linux, you might want to rather play in fullscreen where the sync is usually better.
For the record, the implementation of vsync support was planned with the use of SDL2.0, but after a few checks it would have required me to move the texture manager to use SDL_Texture and use the SDL renderer before that.

So I guess this is something I'll have to look at in a more manual way, and more preferably using adaptive vsync, when possible.
Useful links:
http://www.opengl.org/wiki/Swap_Interval
http://stackoverflow.com/questions/5890 ... -in-opengl

EDIT: I'm rather happy to hear the 41 FPS are constant. Before the optimizations in the text rendering algorithms, they would have been more floppy. :)

Best regards,

Re: Jerky [camera] movement

PostPosted: 01 Apr 2014, 15:54
by Suitecake
It's true; I did notice a smoother experience in fullscreen.

And I'm glad to give good news then!