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

Author Topic: My sprite stutters when it moves after using a delta  (Read 11057 times)

0 Members and 2 Guests are viewing this topic.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: My sprite stutters when it moves after using a delta
« Reply #15 on: February 21, 2018, 12:24:55 pm »
Every application has some degree of stuttering. It's usually caused by stalled updates for one frame due to some other application using up GPU or CPU resources.
It's also why in fullscreen mode you usually get less stuttering because there you more or less have exclusive GPU time for that monitor.

If you use a fixed timestep the movement of the object isn't dependent on the frame rendering any more, but it just keeps going and whenever there are resources available it will be drawn to the screen.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Hapax

  • Hero Member
  • *****
  • Posts: 3379
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: My sprite stutters when it moves after using a delta
« Reply #16 on: February 26, 2018, 01:11:12 am »
I actually created a timing library with classes that help with this sort of thing. People are probably a bit bored of my links to it though  :D

I would really appreciate those links to those libraries... please?
Just in case I decide to change the links in my signature again, my timing library called Kairos is available on github here:
https://github.com/Hapaxia/Kairos/wiki
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

 

anything