Jerky [camera] movement

Jerky [camera] movement

Postby Suitecake » 30 Mar 2014, 04:52

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.
Suitecake
 
Posts: 17
Joined: 07 Oct 2013, 20:50

Re: Jerky [camera] movement

Postby Bertram » 30 Mar 2014, 15:42

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,
User avatar
Bertram
VT Moderator
 
Posts: 1652
Joined: 09 Nov 2012, 12:26

Re: Jerky [camera] movement

Postby Suitecake » 30 Mar 2014, 16:23

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,
Suitecake
 
Posts: 17
Joined: 07 Oct 2013, 20:50

Re: Jerky [camera] movement

Postby Bertram » 01 Apr 2014, 09:39

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,
User avatar
Bertram
VT Moderator
 
Posts: 1652
Joined: 09 Nov 2012, 12:26

Re: Jerky [camera] movement

Postby Suitecake » 01 Apr 2014, 15:54

It's true; I did notice a smoother experience in fullscreen.

And I'm glad to give good news then!
Suitecake
 
Posts: 17
Joined: 07 Oct 2013, 20:50

Who is online

Users browsing this forum: No registered users and 1 guest