I'm working on my first OpenGL 2D game and I've just locked the framerate of my game. However, the way objects move is far from satisfying: they tend to lag, which is shown in this video. I've thought how more fluent animation can be achieved and started getting segmentation faults due to accessing the same object by two different threads. I've tried the following threads' setting:
- Drawing, creating new objects
- Moving player, moving objects, deleting objects
Currently my application uses this setting:
- Drawing, creating new objects, moving objects, deleting object
- Moving player
Any ideas would be appreciated.
EDIT: I've tried increasing the FPS limit but lags are noticeable even at 200 fps.