Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Laggy sfml Moving object, how to fix ?  (Read 916 times)

0 Members and 2 Guests are viewing this topic.

Redee

  • Jr. Member
  • **
  • Posts: 97
    • View Profile
Laggy sfml Moving object, how to fix ?
« on: April 01, 2015, 04:34:20 pm »
Have main game developing question maybe at all time about gameLoop...

I wrote this C++ code with Sfml using this article >>
http://gafferongames.com/game-physics/fix-your-timestep/

Then was begun some tests.
And problem is !!!

Again and again I see a little bit LAGGY if we see some more time at movObject.
What my wrong ?
Please specify how to fix and achieve SMOOTH moving.

Here sources (MSVS) >>
https://github.com/Redee/Moving-object-Cpp-test
mirror >
https://www.dropbox.com/sh/390nvshzexxirgs/AAAH0E-NzzxWuz3HCfbuBtIUa
-
Here main code to easy fast read > http://pastebin.com/he8TMHgi

Thanks in advance!
« Last Edit: April 15, 2015, 03:23:57 pm by Redee »