SFML community forums
Help => Graphics => Topic started by: schmitty on November 07, 2012, 10:25:33 pm
-
I am having a strange bug when Vsync is enabled and the view follows the player in my 2D game.
When Vsync is enabled, and the view's center is set to the players position each frame, the player jitters back and forth when receiving input commands. This only happens when Vsync is enabled, when the framerate is unlocked the player stays in the center of the screen as expected. Any ideas what might be causing this?
Thanks!
-
Sorry I've lost my magical crystal ball last year, so I'm unable to see your not provided code... ;D
On a serious note, you should always provide an example of what your doing, because in most cases it's not SFML or anything else related to the problem, but the programmer itself has made a for him not so obvious mistake. Also read this (http://en.sfml-dev.org/forums/index.php?topic=5559.0). :)
-
Sorry I'm at work right now I will post my code when I get home. Thanks for the etiquette link.
-
I think I might have faced this problem actually, I'm not exactly sure now. Will have to dig into old(as in - solution for earlier visual) project to check it out.
Edit: Nope, converted and recompiled but I can't reproduce the bug I used to have, like it doesn't exist anymore.
Sorry I've lost my magical crystal ball last year, so I'm unable to see your not provided code... ;D
Lies! You still had it in august this year:
Depends on your code change which my magic ball unfortunatly refuses to show... ;)
-
Sorry I've lost my magical crystal ball last year, so I'm unable to see your not provided code... ;D
Lies! You still had it in august this year:
Depends on your code change which my magic ball unfortunatly refuses to show... ;)
Hahaha lol ;D
Okay, okay I confess: I slipped the other day, it fell out of my hands and broke into two pieces. Tried gluing them together but it didn't work. :-\